Skip to content

How to configure the subject claim when upgrading from 3.4 to 4.0 #997

Answered by lcobucci
b-hayes asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, it's represented on the code sample here: https://lcobucci-jwt.readthedocs.io/en/stable/upgrading/#use-the-new-builder-api

The subject claim represents what the token is related to, hence Builder#relatedTo().

Feel free to send a PR if you have a suggestion to explain it clearer.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@lcobucci
Comment options

@b-hayes
Comment options

@b-hayes
Comment options

Answer selected by lcobucci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #996 on February 07, 2023 03:52.