Auth0 & ReactJS RBAC permissions

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

--

--

developer and weirdo / current: Tychetech / MAD TV / WARR

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store