teamhanko / hanko

Authentication and user management for the passkey era.
https://hanko.io
Other
5.67k stars 794 forks source link

Add user data to JWT #1388

Closed FlxMgdnz closed 5 months ago

FlxMgdnz commented 5 months ago

Add basic user data like primary email or email verified to the JWT.

When the user changes their primary email, we can issue a fresh token that contains the updated email, so that any implementation that relies on the token data gets the correct information from it.

Solves #1013