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

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

Fast, Lightweight, Web-standards
Very Popular
Go to Latest
variable Jwt.sign
import { Jwt } from "https://deno.land/x/hono@v3.11.12/utils/jwt/index.ts";
const { sign } = Jwt;

type

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