Skip to main content
Module

x/jose/types.d.ts>JWTClaimVerificationOptions

"JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK, JWKS with no dependencies using runtime's native crypto in Node.js, Browser, Cloudflare Workers, Electron, and Deno.
Extremely Popular
Go to Latest
interface JWTClaimVerificationOptions
import { type JWTClaimVerificationOptions } from "https://deno.land/x/jose@v4.8.3/types.d.ts";

JWT Claims Set verification options.

Properties

optional
audience: string | string[]

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

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").
optional
issuer: string | string[]

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

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").
optional
subject: string

Expected JWT "sub" (Subject) Claim value.

optional
typ: string

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

optional
currentDate: Date

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