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

x/cav/jwt.ts

A server framework for Deno
Go to Latest
import * as cav from "https://deno.land/x/cav@0.0.24/jwt.ts";

Functions

Verifies the JWT and returns its parsed payload object. If verification fails, an error will be thrown. Verification will fail if:

Creates a new JWT with the given payload, which is passed into JSON.stringify before encoding. If no key is specified, a securely random transient fallback will be used. The fallback key is only generated once during startup and it's lost when the Deno process quits.