Replies: 1 comment 2 replies
-
In case you hadn't seen, you can access custom claims in the AuthUser |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First want to say this library is great, have used it to add SSR authentication to my NextJS project.
I am curious how to implement custom claims with this specific library? I have seen tutorials on creating the actual claims, but those are for projects that have a separate backend and frontend. Since NextJS is "all-in-one", I am looking to see if anyone would be able to guide me on creating custom claims.
For example, I want to create a Role-Based Authentication Access so want to create custom claims for specific roles like "Admin" and "User", etc...
If anyone has done this before with NextJS, any help is welcome!
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions