Hi Andrei,
Thanks for reaching out to us.
The OAUTH_TOKEN_INVALID error indicates that the access token you used with the HTTP header is incorrect or expired. That said, you’ll need to regenerate credentials and refresh tokens. You may refer here to this guide for the steps on how you can regenerate credentials and refresh tokens.
If the error persists with the said token, even after following the steps from the above guide, I would recommend that you reach out instead to the Google API Console Support team via this link.
In addition, you may also double check if you still have access to the project where you’re generating the OAuth credentials in the developer console. It could be one of the reasons that you get the token invalid errors.
Regards,
|
||||||
Hi Andrei,
Thanks for getting back to us
To generate an access token, kindly follow the Installed application (recommended) or the Web application with a web flow. Note that whether you are using web flow or the desktop app flow, the client library you are using should already automatically take care of the authentication on your behalf. For more information on Authentication, you may refer to this API documentation.
Let us know if you have any further questions.
Regards,
|
||||||