Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Go to Latest
function djwt.create
import { djwt } from "https://deno.land/x/blocks@1.72.0/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>