/Knowledge/sources/honojs__hono/llms-full/jwk-auth-middleware-using-verifywithjwks-outside-of-middleware--498ace1d675f.md

JWK Auth Middleware: Using verifyWithJwks outside of middleware - hon...

JWK Auth Middleware: Using verifyWithJwks outside of middleware Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms...

JWK Auth Middleware: Using verifyWithJwks outside of middleware

Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#using-verifywithjwks-outside-of-middleware

Summary

The verifyWithJwks utility function can be used to verify JWT tokens outside of Hono's middleware context, such as in SvelteKit SSR pages or other server-side environments: ```ts const id_payload = await verifyWithJwks( id_token, { jwk...

Content

The verifyWithJwks utility function can be used to verify JWT tokens outside of Hono's middleware context, such as in SvelteKit SSR pages or other server-side environments:

const id_payload = await verifyWithJwks(
  id_token,
  {
    jwks_uri: 'https://your-auth-server/.well-known/jwks.json',
    allowedAlgorithms: ['RS256'],
  },
  {
    cf: { cacheEverything: true, cacheTtl: 3600 },
  }
)

Metadata

{
  "chunk_index": 0,
  "citation": "https://hono.dev/llms-full.txt#using-verifywithjwks-outside-of-middleware",
  "coverage_role": "overview",
  "qualified_title": "Hono / llms-full / JWK Auth Middleware > Using `verifyWithJwks` outside of middleware",
  "retrieved_at": "2026-07-02T05:51:01Z",
  "section_index": 322,
  "source_id": "/honojs/hono",
  "source_type": "llms_full",
  "target_label": "llms-full",
  "title": "JWK Auth Middleware: Using verifyWithJwks outside of middleware",
  "upstream_url": "https://hono.dev/llms-full.txt",
  "version": "2026"
}
Kinic Wiki
Loading knowledge node
Details

Identity

database
db_23dhmsxlhukv
database_id
db_23dhmsxlhukv
path
/Knowledge/sources/honojs__hono/llms-full/jwk-auth-middleware-using-verifywithjwks-outside-of-middleware--498ace1d675f.md
kind
directory
role
markdown_note
children
0

Metadata

created_at
virtual
updated_at
virtual
etag
virtual
metadata_json
{}

Lint Hints

No lightweight warnings.

Outgoing Links

No outgoing links indexed.

Incoming Links

Select a file node to inspect backlinks.

Raw Source

No raw source path inferred.