jose/docs/classes/util_errors.jwtexpired.md
2021-03-18 07:51:50 +01:00

2 KiB

Class: JWTExpired

util/errors.JWTExpired

An error subclass thrown when a JWT is expired.

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

+ new JWTExpired(message: string, claim?: string, reason?: string): JWTExpired

Parameters:

Name Type Default value
message string -
claim string 'unspecified'
reason string 'unspecified'

Returns: JWTExpired

Inherited from: JWTClaimValidationFailed

Defined in: util/errors.ts:36

Properties

claim

claim: string

The Claim for which the validation failed.

Inherited from: JWTClaimValidationFailed.claim

Defined in: util/errors.ts:31


code

code: string= 'ERR_JWT_EXPIRED'

A unique error code for the particular error subclass.

Overrides: JWTClaimValidationFailed.code

Defined in: util/errors.ts:135


reason

reason: string

Reason code for the validation failure.

Inherited from: JWTClaimValidationFailed.reason

Defined in: util/errors.ts:36