Skip to main content
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.8/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