I’m using the React SDK. I want to show or hide a link to an admin portal if the user has the permission adminportal:view. This seems like an incredibly basic thing to do but I’m unable to do it or find any code to do it online. I have no issues getting some of the user data like name, picture, etc. but I can’t get roles, permissions, or metadata. Any help would be greatly appericated.
jacks1
1
Hey there!
Maybe that will be helpful:
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Auth0-React: Best way to get user role/permission data to render app components | 2 | 7459 | November 11, 2020 | |
| Access user permissions array in user token | 2 | 3975 | December 21, 2022 | |
| Permissions inside a react app | 2 | 4541 | May 4, 2021 | |
| How to see users role in react frontend | 3 | 3384 | February 22, 2023 | |
| Flow for fetching a user's role and permissions | 2 | 5409 | September 30, 2022 |