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

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

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

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

Parameters

header: Header
payload: Payload
key: CryptoKey | null

Returns

Promise<string>