I have get permission assigned to user and based on that enable menu items

i am trying to retrieve permission assigned to user and based on that i have to enable and disable some menu item as well protect some route.
currently i have created roles and assigned permissions to roles as well to api. i am getting permission in access token but i am not able decode. i have checked with jwt.io and it’s showing permissions array with proper value is there.
I have added all permission in authprovider and using related permission in getaccesstokensilently methods.
i am using auth0-react. i have to get permission from front side only.