I have a NextJS app with 2 types of users: regular users and super admins. Super admins can see a read-only version of the app as one of the regular users. I’m achieving this by having an “override” prop in the user_metadata of super admins that contains the id of a regular user we want to view the app as.
When I login to the system I have an action that puts the user metadata in the access token.
The problem is that I want to be able to change the “override” prop on the app and send the latest user_metadata in the access token. is it possible to “renew” the access token to get the latest user metadata? or maybe you have another idea to do what I’m trying to do
I’m not quite sure I understand how to implement it with 1.0.0 version, because there we don’t use the auth0 instance, but the handleAuth function that covers all of auth0 endpoints.
If I want to use refresh tokens I can’t do it with the handleAuth function?