From ca8d773dfa8817d6a13c32afcd5d5efecfe1bd37 Mon Sep 17 00:00:00 2001 From: Freebuu Date: Wed, 3 Apr 2024 11:57:40 +0300 Subject: [PATCH] update docs for custom claims --- docs/validating-tokens.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/validating-tokens.md b/docs/validating-tokens.md index 8278ed2e..6e3096c3 100644 --- a/docs/validating-tokens.md +++ b/docs/validating-tokens.md @@ -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).