Skip to content

Conditionally removing email from JWT #29

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

Open
drewbo opened this issue Feb 18, 2025 · 1 comment
Open

Conditionally removing email from JWT #29

drewbo opened this issue Feb 18, 2025 · 1 comment

Comments

@drewbo
Copy link

drewbo commented Feb 18, 2025

The current implementation adds user.email to the JWT as long as it exists. I'd like the option to remove it from the token. Ideally this would be conditional on useEmailAsIdentity since it's possible that the email is part of the user model but not used as identity.

@WilsonLe
Copy link
Owner

Makes sense, I'll add it in next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants