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

x/djwt/mod.ts>create

Create and verify JSON Web Tokens (JWT) with Deno or the browser.
Very Popular
Go to Latest
function create
import { create } from "https://deno.land/x/djwt@v2.7/mod.ts";

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

Parameters

header: Header
payload: Payload
key: CryptoKey | null

Returns

Promise<string>