Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Latest
function djwt.verify
import { djwt } from "https://deno.land/x/live@1.74.1/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