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 | |
|---|---|---|---|---|
| Access user permissions array in user token | 1 | 3982 | May 6, 2022 | |
| Permissions inside a react app | 1 | 4555 | May 4, 2021 | |
| How to see users role in react frontend | 2 | 3395 | February 8, 2023 | |
| Flow for fetching a user's role and permissions | 1 | 5434 | September 30, 2022 | |
| How can I get user roles client side? | 3 | 4891 | February 26, 2024 |