Skip to content

Interface: JwtVerifyOptions ​

Defined in: jwt.ts:167

Per-token options for JWTVerifier.verify.

Properties ​

context? ​

optional context?: Uint8Array<ArrayBufferLike>

Defined in: jwt.ts:169

Must equal the context used to sign (default "jwt").


now? ​

optional now?: number

Defined in: jwt.ts:175

Override "now" (Unix seconds), mainly for tests.


requireExp? ​

optional requireExp?: boolean

Defined in: jwt.ts:173

Reject tokens that carry no exp claim (default false, as in quantum-safe-py). Recommended for anything that should expire.


validateExp? ​

optional validateExp?: boolean

Defined in: jwt.ts:170


validateNbf? ​

optional validateNbf?: boolean

Defined in: jwt.ts:171

Apache-2.0.