Hy, I want to ask how to get updated user roles by hitting the userinfo api with with user token. I am only getting the updated user roles after getting logout and login again.
Hi @m.bilal,
Welcome to the Auth0 Community!
You could perform silent authentication to re-authenticate the user without prompting for any interaction to get new tokens as long as the user still has a valid session at Auth0.
Check out our Configure Silent Authentication documentation.
Cheers,
Rueben
I want to ask one more thing when the admin the user role by admin panel. How can we know that user role is changed. Because after login in the mobile am saving the user information on the mobile
Hi @m.bilal,
You could periodically silently authenticate your users so that you can have the users update roles.