Please provide the following:
- SDK Version: 44
- Platforms(Android/iOS/web/all): Android
- 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",
},