useAuthRequest allways returns refreshToken undefined

Please provide the following:

  1. SDK Version: 44
  2. Platforms(Android/iOS/web/all): Android
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

Im trying to replace the deprecated module expo-google-app-auth to expo-auth-session, the auth works ok i get the bearer token but the useAuthRequest response allways returns refreshToken undefined is there anyway to get refresh token?
the old module still returns the refreshtoken, i have tried use access_type: ‘offline’, in the extra extraParams prop without success

const [request, response, promptAsync] = useAuthRequest({
    expoClientId: ANDROID_EXPOGO_CLIENT_ID,
    androidClientId: ANDROID_STANDALONE_APP_CLIENT_ID,
    scopes: ['https://www.googleapis.com/auth/drive.appdata'],
    // extraParams: {
    //   access_type: 'offline',
    // },
  });

const googleAuthResponse = await promptAsync();

console.log(googleAuthResponse);

response

 "authentication": TokenResponse {
    "accessToken": "token",
    "expiresIn": "3599",
    "idToken": undefined,
    "issuedAt": 1641580518,
    "refreshToken": undefined,
    "scope": "email profile https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/drive.appdata openid",
    "state": "aaaa",
    "tokenType": "Bearer",
  },

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