@MikeyB somewhat late but absolutely sure, When you are obtaining the invalid grant error a result of the very same rationale like me then you remedy it by resetting the secret critical within the google console and go throughout the token generation move yet again Using the new secret critical, https://www.reddit.com/user/Consistent-Load1428/