Please provide the following:
- SDK Version: 39
- Platforms(Android/iOS/web/all): iOS
- 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);