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

verify

import { verify } from "https://raw.githubusercontent.com/timonson/djwt/master/mod.ts";

Takes jwt, CryptoKey and VerifyOptions and returns the Payload of the jwt if the jwt is valid. Otherwise it throws an Error.

async function verify<PayloadType extends Payload>(
jwt: string,
key: CryptoKey | null,
options?: VerifyOptions,
): Promise<PayloadType>;
§
verify<PayloadType extends Payload>(jwt: string, key: CryptoKey | null, options?: VerifyOptions): Promise<PayloadType>
[src]

§Type Parameters

§
PayloadType extends Payload
[src]

§Parameters

§
jwt: string
[src]
§
key: CryptoKey | null
[src]
§
options?: VerifyOptions optional
[src]

§Return Type

§
Promise<PayloadType>
[src]