-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do we customise the claims? #2228
Comments
use customClaims method |
i did that. Add those on User model
//
// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a "multi-tenant" game application, and instead of having to store the accessed account in the URL, I want it to be part of the JWT token payload. So, a user can login to an account, and that account will be stored as part of the payload.
However, I also want them to be able to switch accounts. This would involve another endpoint, and then I issue the user a new token to be used.
On subsequent requests I would check check the game they've switched to and double-check they can access.
But this saves having to swap domains or have a URL prefix (which I don't want, in this context it doesn't make any sense).
The text was updated successfully, but these errors were encountered: