Skip to content

auditContext

function auditContext(options?): MiddlewareHandler;

Defined in: src/adapters/hono.ts:50

Request-context middleware: resolves the actor / tenant from Hono’s context (whatever your auth middleware set) and runs the rest of the chain inside an audit context scope, so every audit.record() downstream is attributed.

Parameter Type
options? AuditContextOptions<Context<any, any, { }>>

MiddlewareHandler