Nuxt SDK - Get User Role on the Server
Hi there
Is there a way to get a users role on the server side? I can't find a function on KindeContext which provides this information.
Thanks for your help π
1 Reply
Hey. Not familiar with nuxt and can't find something specific on the nuxt docs but if you know a way to get the token you could add the roles claim to it https://docs.kinde.com/manage-users/roles-and-permissions/user-roles/#add-roles-to-the-access-token
Kinde docs
Manage user roles
Our developer tools provide everything you need to get started with Kinde.