Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/live/commons/jwt/deps.ts>djwt.create

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Very Popular
Go to Latest
function djwt.create
import { djwt } from "https://deno.land/x/live@1.74.1/commons/jwt/deps.ts";
const { create } = djwt;

Takes Header, Payload and CryptoKey and returns the url-safe encoded jwt.

Parameters

header: Header
payload: Payload
key: CryptoKey | null

Returns

Promise<string>