Skip to content

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