I have web app that need redirect to specific page based on user's role using middleware so I will need the role from the token in middleware before the page get rendered, especially to handle when refresh the page.
Is there any way to include user's role in the token?
Thanks.
Active
6.0
Code