/api/v2/users/{id} returns google accessToken not refreshToken?

I am unsure if I need a refreshToken for google. Is there a way to call auth0 to get the accessToken once in a while? I need to call the gmail apis every so often on behalf of customer users. Will auth0 know to call out to google to get a new access token if the previous one expired. As this is a prototype, I am fine with just calling for an access token when I need to invoke an api right now.

Hey there @dean2 !

A bit old but this post has some good information on this topic:

Long story short, you need to pass the parameter access_type=offline, as well the connection_scope parameter with required scopes, when calling the Auth0 /authorize endpoint.

Auth0 doesn’t check for the expiration of tokens nor refresh them.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.