mirror of
https://github.com/danbulant/jose
synced 2026-05-20 12:58:36 +00:00
2.5 KiB
2.5 KiB
Interface: JWTClaimVerificationOptions
types.JWTClaimVerificationOptions
JWT Claims Set verification options.
Hierarchy
-
JWTClaimVerificationOptions
Table of contents
Properties
Properties
audience
• Optional audience: string | string[]
Expected JWT "aud" (Audience) Claim value(s).
Defined in
clockTolerance
• Optional clockTolerance: string | number
Expected clock tolerance
- in seconds when number (e.g. 5)
- parsed as seconds when a string (e.g. "5 seconds", "10 minutes", "2 hours").
Defined in
currentDate
• Optional currentDate: Date
Date to use when comparing NumericDate claims, defaults to new Date().
Defined in
issuer
• Optional issuer: string | string[]
Expected JWT "iss" (Issuer) Claim value(s).
Defined in
maxTokenAge
• Optional maxTokenAge: string | number
Maximum time elapsed (in seconds) from the JWT "iat" (Issued At) Claim value.
- in seconds when number (e.g. 5)
- parsed as seconds when a string (e.g. "5 seconds", "10 minutes", "2 hours").
Defined in
subject
• Optional subject: string
Expected JWT "sub" (Subject) Claim value.
Defined in
typ
• Optional typ: string
Expected JWT "typ" (Type) Header Parameter value.