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

x/djwt/mod.ts>verify

Create and verify JSON Web Tokens (JWT) with Deno or the browser.
Very Popular
Go to Latest
function verify
import { verify } from "https://deno.land/x/djwt@v2.7/mod.ts";

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