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

x/deno_nest/modules/jwt/deps.ts>verify

Refer to nestjs to realize some common functions for Deno, support hono and oak
Latest
function verify
import { verify } from "https://deno.land/x/deno_nest@v3.15.1/modules/jwt/deps.ts";

Takes jwt, CryptoKey and VerifyOptions and returns the Payload of the jwt if the jwt is valid. Otherwise it throws an Error.

Type Parameters

PayloadType extends Payload

Parameters

jwt: string
key: CryptoKey | null
optional
options: VerifyOptions