Cannot get a correct accessToken from azure

Please provide the following:

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

I can get an accessToken but when I parse it, it doesn’t have my custom scope and correct audience. Here is a parsed token - https://i.stack.imgur.com/7Fdjs.png

Here is a config that I used -

const baseRedirectUrl = Linking.makeUrl('/redirect');
const config = {
      issuer: 'https://sts.windows.net/[tenantId]',
      scopes: [ "api://[api-key]/api-access" ],
      clientId: ApiConfig.ssoConfig.clientId,
      additionalParameters: { prompt: 'select_account' },
      redirectUrl: baseRedirectUrl,
    };
const authState = await AppAuth.authAsync(config);

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