Open anshpreet3101 opened 1 month ago
+1
@charIeszhao @gao-sun @simeng-li can you please check this?
For any newly assigned roles or permissions, the user must re-authenticate again to pick up the latest changes.
For any newly assigned roles or permissions, the user must re-authenticate again to pick up the latest changes.
Thanks for the response @simeng-li . My application is using logto in a react-native app. When a logged in user subscribes in my app, asking them to logout and login is not good user experience. None of the apps, do this. after subscription, we need to provide benefits in the same session. benefits are driven by the roles/permissions in user token.
This is a blocker for us. We will need to find an alternative if this is the case. what do you suggest @simeng-li ?
Describe the bug
I am using the management API to update the roles of a user. The roles get updated successfully on the server. However, when I refresh the token to get the updated roles using getRefreshToken() method , the roles in the token remain the same as before. Only the expiry time is updated, while the roles and other data remain unchanged.
Expected behavior
The new token should reflect the updated roles from the authentication server. Roles Updates when user redo the browser based signIn process.
How to reproduce?
Context