Skip to content

Commit

Permalink
update docs for custom claims
Browse files Browse the repository at this point in the history
  • Loading branch information
freebuu authored and lcobucci committed Apr 11, 2024
1 parent 8f564c6 commit ca8d773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/validating-tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ This library provides the following constraints:
* `Lcobucci\JWT\Validation\Constraint\StrictValidAt`: verifies presence and validity of the claims `iat`, `nbf`, and `exp` (supports leeway configuration)
* `Lcobucci\JWT\Validation\Constraint\LooseValidAt`: verifies the claims `iat`, `nbf`, and `exp`, when present (supports leeway configuration)
* `Lcobucci\JWT\Validation\Constraint\HasClaimWithValue`: verifies that a **custom claim** has the expected value (not recommended when comparing cryptographic hashes)
* `Lcobucci\JWT\Validation\Constraint\HasClaim`: verifies that a claim is present
* `Lcobucci\JWT\Validation\Constraint\HasClaim`: verifies that a **custom claim** is present

You may also create your [own validation constraints](extending-the-library.md#validation-constraints).

0 comments on commit ca8d773

Please sign in to comment.