jose/docs/interfaces/types.JWTClaimVerificationOptions.md
2021-10-14 12:06:19 +02:00

1.6 KiB

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.