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

x/dtils/deps.ts>jwtCore.verify

The best unofficial library of utilities for Deno applications
Latest
function jwtCore.verify
import { jwtCore } from "https://deno.land/x/dtils@2.6.1/deps.ts";
const { verify } = jwtCore;

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