Access role from SPA

Hi @Giom,

Welcome to the Auth0 Community!

You could add the user’s roles as a custom claim to the access token so that you can use that information when a user logs in to display their role.

https://community.auth0.com/t/adding-custom-claims-to-tokens/84590

Let me know if you have any questions.

Thanks,
Rueben