Hi there i have a nextjs app and we have roles / permission setup. I return the permissions in the access token as a claim. Is there a way to read them from the nextjs api?
I found a getSession but all it returns is the encoded JWT access token.
Hi tyf.
I was looking to access the permissions from the nextjs server api.
I want to create an identity api endpoint which returns the permissions along with some other user data that is only stored in the access token so i can tailor the ui display based on a users permissions.
In the end i just went with the authorized scopes since they are available in the api. Seems to work okay.