Auth0 & ReactJS RBAC permissions

Dimitris Moutsatsos
1 min readApr 14, 2021

If you are using Auth0 with ReactJS you may need to get the user permissions (RBAC) in order to change some elements in your react app.

I could not find any method in @auth0/auth-react so I tried a workaround for this but when i was creating a silent token the metadata was inside the JWT.

So first install a npm library to read jwt

# npm install jwt-decode