/Knowledge/sources/honojs__hono/llms-full/jwt-authentication-helper-sign--e7e0a836239a.md
JWT Authentication Helper: sign() - hono-docs
JWT Authentication Helper: sign() Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt sign Summary This fu...
JWT Authentication Helper: sign()
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#sign
Summary
This function generates a JWT token by encoding a payload and signing it using the specified algorithm and secret. ts sign( payload: unknown, secret: string, alg?: 'HS256'; ): Promise ;
Content
This function generates a JWT token by encoding a payload and signing it using the specified algorithm and secret.
sign(
payload: unknown,
secret: string,
alg?: 'HS256';
): Promise<string>;
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#sign",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / JWT Authentication Helper > `sign()`",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 634,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "JWT Authentication Helper: sign()",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}