Get refresh token from Google using react-native sdk


I have read a number of documentation pages on getting a refresh token using Google social login.

I haven’t been able to get the refresh token from Auth0’s identities.

Here is the code using the react-native sdk.

await authorize(
          audience: ENVIRONMENT.API_AUDIENCE,
          scope: "openid profile email offline_access",
          additionalParameters: {
            "access_type": "offline",
            "connection_scope": ",",

Could you tell me what I’m doing wrong?

Hi @abduncan0,

You need to use the management API to get the user’s Google refresh token and you shouldn’t be doing this directly from a public client. You’ll want fetch this token from your backend/API.

There’s a good write up about it here (ignore the first posts, they are about getting an Auth0 refresh token. I linked to the correct post directly):

Hi @dan.woda,

I have used the management api to get the identities, but it only has the access token, not the refresh token.

It sounds like you aren’t being returned the refresh token from google. Have you gone through the post I linked and confirmed you are sending the correct params with the request?

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