@MikeyB a bit late but confident, For anyone who is obtaining the invalid grant mistake due to similar rationale like me Then you definately remedy it by resetting the secret key during the google console and go through the token era flow yet again with the new key crucial, but https://share.evernote.com/note/b6ac86c4-49b5-8a83-fcdd-e9f84e4317c6