@MikeyB a little bit late but guaranteed, if you are getting the invalid grant error as a result of similar purpose like me Then you definitely remedy it by resetting The key crucial during the google console and go through the token generation stream once more Using the new solution https://safe-herbal-supplements.mystrikingly.com/