Skip to content

Commit

Permalink
auth/texas: clarify validation of claims
Browse files Browse the repository at this point in the history
  • Loading branch information
tronghn committed Dec 2, 2024
1 parent cfd2e23 commit 6c15be1
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions docs/auth/partials/validate.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ It always contains the `active` field, which is a boolean value that indicates w

##### Success response

If the token is valid, the response will also contain all the token's claims:
If the token is valid, the response will additionally contain **all** the token's claims:

```json title="Valid token"
{
Expand All @@ -52,9 +52,14 @@ If the token is valid, the response will also contain all the token's claims:
}
```

Texas validates the standard claims.
[Other claims](<<claims_reference>>) are not validated.
Your application must validate these claims according to your own requirements.
Claims are copied verbatim from the token to the response.

!!! question "Which claims are validated by Texas?"

Texas only validates the token's signature and its [standard claims](../../explanations/README.md#claims-validation).

[Other claims](<<claims_reference>>) are included in the response, but are not validated by Texas.
Your application must validate these other claims according to your own requirements.

##### Error response

Expand Down

0 comments on commit 6c15be1

Please sign in to comment.