Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hex/src/service/deps.ts>djwt.verify

An ecosystem delivering practices, philosophy and portability.
Go to Latest
function djwt.verify
import { djwt } from "https://deno.land/x/hex@0.5.15/src/service/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