Skip to content
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

Dynamic authenticate key #2223

Open
wants to merge 2 commits into
base: 2.x
Choose a base branch
from
Open

Dynamic authenticate key #2223

wants to merge 2 commits into from

Conversation

aemaddin
Copy link

Sometimes you need to add a custom claim key that should be used instead of sub to retrieve the user by id on authenticate method and user method.

You just need to add a new .env key called JWT_IDENTIFIER that could be any claim key for example uid

Copy link

@battleplayer02 battleplayer02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes this is much needed

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