@MikeyB somewhat late but certain, if you are obtaining the invalid grant error a result of the similar purpose like me Then you definately clear up it by resetting the secret essential in the google console and go with the token generation flow yet again Using the new secret key, https://justpaste.it/hsm25