hono_context.ts

Hono context variable augmentation for fuz_app.

Cross-cutting shared vocabulary — defines the Hono ContextVariableMap variables used by auth, http, server, and testing modules.

Import this module once in your app to get type-safe access to auth_session_id, request_context, and credential_type on the Hono context.

In practice, this is auto-loaded by app_server.ts (side-effect import) and transitively by auth middleware modules that import CREDENTIAL_TYPE_KEY. Consumers don't need a manual import unless bypassing the standard server assembly.

Declarations
#

3 declarations

view source

CREDENTIAL_TYPE_KEY
#

CREDENTIAL_TYPES
#

hono_context.ts view source

readonly ["session", "api_token", "daemon_token"]

The credential types that can authenticate a request.

CredentialType
#

hono_context.ts view source

ZodEnum<{ session: "session"; api_token: "api_token"; daemon_token: "daemon_token"; }>

Credential type — how a request was authenticated.

Imported by
#