Retrieving scope field from response from token endpoint using Auth0 Single Page App SDK

Hi!,

I would like to retrieve the scope field from the authResult as it was done in the following tutorial:

However, in the example, a previous version of the library was used.
How can I get the information (the scope) when using the auth0-spa-js?
I can see that the response from the token endpoint contains the scope field, but I don’t know how to grab it. As a temporary workaround I created a rule which ads the information to the id token, but it seems a bit weird that the feature seems to be no longer available in the newest library version.

hi @wojtrawi,

Welcome to the Community!

I couldn’t find any way that these were exposed in the auth0-spa-js SDK. Can you please make a formal feature request in the repo by filing an issue Issues · auth0/auth0-spa-js · GitHub

Thanks,
Dan

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