AppAuth.refreshAsync returns different scopes of idToken from google

Please provide the following:

  1. SDK Version: 36.0.0
  2. Platforms(Android/iOS/web/all): Android

I am using AppAuth for google log in for my app.
And using this example.

const config = {
   issuer: "",
   scopes: ["profile", "email"],
     Platform.OS === "ios"
       ? Constants.manifest.extra.iosClientId
       : Constants.manifest.extra.androidClientId

const authState = await AppAuth.authAsync(config);

I am using idToken in my backend server for verification and validation and to create or get a user. But IdToken permissions seems different from first returned and refreshed one.
When I decode first requested idToken(authAsync(config)) I can retrieve profile information(name, picture, family name etc).
But from refreshed idToken, I don’t see any profile information.

const authState = await AppAuth.refreshAsync(config, refreshToken);

Am I missing something?

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