Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Sep 1, 2024
1 parent efb0563 commit 3f68b30
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/jwtverify/token_verifier_jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ type VerifierConfig struct {
// may be then used in constructing JWKSPublicEndpoint.
IssuerRegex string

// UserIDClaim allows overriding default claim used to extract user ID from token. At this
// moment only "user_id" alternative claim is supported due to how tokens are parsed.
// By default, Centrifugo uses "sub".
// UserIDClaim allows overriding default claim used to extract user ID from token.
// By default, Centrifugo uses "sub" and we recommend keeping the default if possible.
UserIDClaim string
}

Expand Down

0 comments on commit 3f68b30

Please sign in to comment.