Skip to content

Graphorin API reference v0.5.0


Graphorin API reference / @graphorin/security / / AuthAuditEvent

Interface: AuthAuditEvent

Defined in: packages/security/src/auth/audit-emitter.ts:45

One auth audit event. The payload never carries the raw token or the pepper — only the token id / metadata safe to log.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
actionreadonlyAuthAuditAction-packages/security/src/auth/audit-emitter.ts:46
actor?readonlyAuthAuditActor-packages/security/src/auth/audit-emitter.ts:51
decisionreadonlyAuthAuditDecision-packages/security/src/auth/audit-emitter.ts:47
metadata?readonlyReadonly<Record&lt;string, unknown&gt;>Bounded, secret-free context (scopes, ip, reason).packages/security/src/auth/audit-emitter.ts:53
targetreadonlystringToken id (token:*) or the failure subject (auth:denied:*).packages/security/src/auth/audit-emitter.ts:50
tsreadonlynumber-packages/security/src/auth/audit-emitter.ts:48