Access Roles of a user in React SDK

When logging in using the react sdk, Auth0provider,
I am getting the basic details of the user using the useAuth0 hook.
How do I get the roles of the user in this as well?

Hi @lpawa,

You can add the roles of the user to the ID token and access token in a rule. Check out this guide:

Hope this helps!
Dan

1 Like

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