expressgoogle-cloud-platformoauth-2.0google-apigoogle-oauth

New Google place api using google OAuth, ask failed to refresh token


I have a Express.js backend, and i want to use Google new place API, so I need to to auth throw Oauth, the issue after a certain amount of time around one day I need to reauthorize the app, I get this error:

Token is expiring, refreshing...
Failed to refresh token: {"error":"invalid_grant","error_description":"reauth related error (invalid_rapt)","error_uri":"https://support.google.com/a/answer/9368756","error_subtype":"invalid_rapt"}
Authorize this app by visiting this URL: URL here.

I thought it was a one time actions, to authorize with link.


Solution

  • I just understand the issue is in my google console (api contols Security-> API controls->App access control), where i don't have my server app trusted one