Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

VerifyOptions

import type { VerifyOptions } from "https://raw.githubusercontent.com/timonson/djwt/master/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.

type VerifyOptions = {
expLeeway?: number;
nbfLeeway?: number;
ignoreExp?: boolean;
ignoreNbf?: boolean;
audience?: string | string[] | RegExp;
predicates?: (<P extends Payload>(payload: P) => boolean)[];
}
;

§Type

§
{
expLeeway?: number;
nbfLeeway?: number;
ignoreExp?: boolean;
ignoreNbf?: boolean;
audience?: string | string[] | RegExp;
predicates?: (<P extends Payload>(payload: P) => boolean)[];
}
[src]