What do I want to achieve?
- First I authenticate the user using Google OAuth and get their calendar events
- But After 1 hour, the access token provided by Google expires and I cannot get the calendar events anymore.
Welcome to the Auth0 Community!
Based on your description, you would like to refresh the access token provided by Google. For that use, you will need to revoke your access token with a refresh token that is provided to you with the access token.
Our Devrel team prepared an extensive overview of the Refresh tokens and the process of revoking inactive access tokens. You can find it here. Remember that the article has been created by refreshing Auth0 tokens, but the procedure should be the same (OAuth2).
I’m also leaving the link to the Google documentation about authentication and different scenarios.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.