Skip to content

Home > @opengovsg/logging > AuthnAudit

AuthnAudit interface ​

Authentication & session audit events (category authn).

Signature:

typescript
export interface AuthnAudit

Methods ​

MethodDescription
loginFailed(input)A failed login attempt. Fires at notice.
loginSucceeded(input)A successful interactive login. Fires at notice.
sessionCreated(input)A session was created (e.g. cookie sealed at login). Fires at notice.
sessionTerminated(input)A session was explicitly ended (logout / destroy). Fires at notice.
sessionTimedOut(input)A session expired by inactivity/TTL. Fires at notice.
tokenReused(input)A session/auth token was replayed — a theft signal. Fires at warn.