@MikeyB a bit late but confident, If you're receiving the invalid grant error as a result of same reason like me Then you certainly solve it by resetting the secret critical inside the google console and go with the token technology stream once more with the new top secret key, https://share.evernote.com/note/8017dd9b-bae1-b7b2-e7a5-981f51e2ee16