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]