Back to Jose

Interface: JWTClaimValidationFailure

docs/util/errors/interfaces/JWTClaimValidationFailure.md

6.2.12994 B
Original Source

Interface: JWTClaimValidationFailure

šŸ’— Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.

Shared details of JWT claim or header validation failures.

JWTExpired does not extend JWTClaimValidationFailed. Use JWTClaimValidationError or the code discriminant to handle both.

Properties

claim

• claim: string

Claim or header that failed validation.


payload

• payload: JWTPayload

The parsed JWT Claims Set; validation of other claims may be incomplete.


reason

• reason: string

Reason code for the validation failure.