Skip to main content
Module

x/djwt/mod.ts>VerifyOptions

Create and verify JSON Web Tokens (JWT) with Deno or the browser.
Very Popular
Go to Latest
type alias VerifyOptions
import { type VerifyOptions } from "https://deno.land/x/djwt@v2.8/mod.ts";

With expLeeway and nbfLeeway implementers may provide for some small leeway to account for clock skew (JWT §4.1.4). The default is 1 second. By passing the option audience, this application tries to identify the recipient with a value in the aud claim. If the values don't match, an Error is thrown.

definition: { expLeeway?: number; nbfLeeway?: number; audience?: string | string[] | RegExp; }