Include user role in access token

Created on 24 May 2025, 13 days ago

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.

Feature request
Status

Active

Version

6.0

Component

Code

Created by

🇮🇩Indonesia yalasta

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024