Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function djwt.verify
import { djwt } from "https://deno.land/x/fathym_everything_as_code@v0.0.315/src/src.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.

Parameters

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