Angular dynamic menu based on roles

I would like to display menu item depending on user roles in an Angular application (without API and Backend).
The login with auth0 works. I have created roles and permissions.

How do I get to the roles in angular-auth0?
There are no roles in the token that is delivered in the function getAccessTokenSilently().
Does anyone have an example of how I can read roles and display menu items according to permission?

Hello @Latz welcome back to the community!

Please see the following FAQ on adding roles/Permissions to tokens:

https://community.auth0.com/t/how-to-add-roles-and-permissions-to-the-id-token-using-actions/84506

Hope this helps!

1 Like

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