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 | 1 | 7468 | October 27, 2020 | |
| Access user permissions array in user token | 1 | 3980 | May 6, 2022 | |
| Permissions inside a react app | 1 | 4549 | May 4, 2021 | |
| How to see users role in react frontend | 2 | 3392 | February 8, 2023 | |
| Flow for fetching a user's role and permissions | 1 | 5424 | September 30, 2022 |