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

x/hono/utils/jwt/index.ts>Jwt.sign

Ultrafast web framework for Cloudflare Workers, Deno, Bun, and Node.js. Fast, but not only fast.
Extremely Popular
Go to Latest
variable Jwt.sign
import { Jwt } from "https://deno.land/x/hono@v2.7.2/utils/jwt/index.ts";
const { sign } = Jwt;

type

(
payload: unknown,
secret: string,
alg?: AlgorithmTypes,
) => Promise<string>