Interface: JwtVerifyOptions
Defined in: jwt.ts:226
Per-token options for JWTVerifier.verify.
Properties
context?
optionalcontext?:Uint8Array<ArrayBufferLike>
Defined in: jwt.ts:228
Must equal the context used to sign (default "jwt").
now?
optionalnow?:number
Defined in: jwt.ts:236
Override "now" (Unix seconds), mainly for tests.
requireExp?
optionalrequireExp?:boolean
Defined in: jwt.ts:234
Reject tokens that carry no exp claim (default false, as in quantum-safe-py). Recommended for anything that should expire.
validateExp?
optionalvalidateExp?:boolean
Defined in: jwt.ts:230
Check exp when the token has one (default true).
validateNbf?
optionalvalidateNbf?:boolean
Defined in: jwt.ts:232
Check nbf when the token has one (default true).