Skip to content

Graphorin API reference v0.15.1


Graphorin API reference / @graphorin/security / / bridgeAuthToAudit

Function: bridgeAuthToAudit()

ts
function bridgeAuthToAudit(options): AuthBridgeTeardown;

Defined in: packages/security/src/audit/auth-bridge.ts:38

Stable

Subscribe the audit-log subsystem to the auth-layer audit emitter. Token mint / revoke / rotate / rekey and every verification outcome (granted, unauth, scope-denied, lockout) land in the chain. Writes serialise through appendAudit so concurrent events never race on seq; a failed write is isolated from the auth path and logged (never swallowed) when no onWriteError is supplied.

Parameters

ParameterType
optionsBridgeAuthToAuditOptions

Returns

AuthBridgeTeardown