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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options? |
AuditContextOptions<Context<any, any, { }>> |
Returns
Section titled “Returns”MiddlewareHandler