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

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

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function djwt.verify
import { djwt } from "https://deno.land/x/hex@0.6.5/src/fw/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