Changing a user's role should have an immediate effect

I have an application with multiple user roles. The roles are put in the JWT access token given by Auth0 after a user logs in.

As an administrator, I would like a user’s access token to change immediately after I change that user’s role.

However, the user have to log out and log in again for the role change to have an effect.

Is there any other way to achieve an immediate effect after changing a user’s role?

Hey there @torbdahl!

You will need to re-authorize the user in order to get the new roles in token(s), but you should be able to achieve this without requiring user interaction using silent auth:

Hope this helps!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.