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

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

const config = {
   issuer: "https://accounts.google.com",
   scopes: ["profile", "email"],
   clientId:
     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.