K
Kinde11mo ago
jixxywizzy

Fetch user role in nextjs-app-v2 sdk

Hello, I wanted to fetch the user role of the currently logged in user without calling an api, Please provide the solution for the same. I'm using nextjs 14.0.2 and kinde-auth-nextjs-app-router-v2 sdk. It will be good if I can get in kindeServersession same as how we get an access token and user profile
1 Reply
onderay
onderay11mo ago
To do that you can get that information in the token. You can learn more about our token customization here https://kinde.com/docs/build/token-customization/
Kinde Docs
Token customization - Build on Kinde - Help center
Our developer tools provide everything you need to get started with Kinde.
Want results from more Discord servers?
Add your server