Skip to content

fix: add all user properties to session #2222

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

FreddyDevelop
Copy link
Contributor

Description

Add missing user properties to the session JWT created by the create session endpoint in the admin API, including the username and the user metadata.

Implementation

Use the existing UserJWTFromUserModel() function to pass all user properties correctly to the GenerateJWT() method.

Tests

  • Add a metadata to a user
  • Add a session JWT customization in the config that uses the metadata
  • Create a session using the admin endpoint

Use all user properties to create a session in the create session endpoint in the admin router.
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

Successfully merging this pull request may close these issues.

2 participants