Open aemaddin opened 1 year ago
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.
sub
You just need to add a new .env key called JWT_IDENTIFIER that could be any claim key for example uid
JWT_IDENTIFIER
uid
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 exampleuid