Skip to content

Latest commit

 

History

History
75 lines (43 loc) · 1.57 KB

types.JWTClaimVerificationOptions.md

File metadata and controls

75 lines (43 loc) · 1.57 KB

Interface: JWTClaimVerificationOptions

JWT Claims Set verification options.

Table of contents

Properties

Properties

audience

Optional audience: string | string[]

Expected JWT "aud" (Audience) Claim value(s).


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").

currentDate

Optional currentDate: Date

Date to use when comparing NumericDate claims, defaults to new Date().


issuer

Optional issuer: string | string[]

Expected JWT "iss" (Issuer) Claim value(s).


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").

subject

Optional subject: string

Expected JWT "sub" (Subject) Claim value.


typ

Optional typ: string

Expected JWT "typ" (Type) Header Parameter value.