Module

x/live/commons/jwt/deps.ts>djwt.verify

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
function djwt.verify
import { djwt } from "https://dotland.deno.dev/x/live@1.63.12/commons/jwt/deps.ts";
const { verify } = djwt;

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

Type Parameters

PayloadType extends Payload

Parameters

jwt: string
key: CryptoKey | null
optional
options: VerifyOptions