Home > @opengovsg/logging > LoginSucceededInput
LoginSucceededInput interface
Input for AuthnAudit.loginSucceeded().
Signature:
typescript
export interface LoginSucceededInput extends AuditInputBaseExtends: AuditInputBase
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| privileged | boolean | Whether this is a privileged account login (flagged in the matrix). | |
| role | string | The user's role at login. | |
| sessionId? | string | (Optional) Session identifier, if a session was created. Absent for stateless auth. | |
| userId | string | The authenticated user. Promoted to the canonical user_id facet. | |
| username? | string | (Optional) The login handle (may differ from userId). Optional. |