Hi,
I’m implementing a new React app and I’ve got the authentication flow working nicely - except for checking scopes. My goal is to be able to conditionally show/alter components based on what scopes the user has, but in practice, all I seem to be able to retrieve from createAuth0Client
or its React wrapper (Auth0 React SDK Quickstarts: Login) is whether or not I’m logged in at all.
There’s a lot of talk of scopes in the documentation (and I’ve got them working for my backend API), but the only resource I can find for accessing scopes in the frontend (API and SPA Configuration (SPAs + API)) is for Angular using the auth0-js library, neither of which apply here.
I’ve tried adding a scopes
parameter to my Auth0Provider
, but can’t seem to find any indication that that’s even being checked on login, let alone a way of verifying any individual scope.
Any thoughts?