Scopes read:current_user update:current_user_identities not granted

I am using react native and specifying the scopes in the authorize call like this:

await authorize({
          ...
          scope: 'openid profile email offline_access read:current_user update:current_user_identities'
        }); 

The returned idToken has every scope except of the last two. What am I doing wrong?

:wave: @rafael.rodriguez :slight_smile:

So it sounds like you’re trying to get a token in order to call the Auth0 Management API from a SPA context (see here for more details). Correct? Tokens used for calling the Auth0 Management API are Access Tokens, so you will also need to specify the Auth0 Management API as the audience in the call to authorise; read:current_user and update:current_user_identities are scopes typically returned as part of the Access Token, not the ID Token.

Hope this helps :sunglasses:

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