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

x/dtils/deps.ts>jwtCore.verify

The best unofficial library of utilities for Deno applications
Go to Latest
function jwtCore.verify
import { jwtCore } from "https://deno.land/x/dtils@2.5.0/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