Home > @opengovsg/logging > LoginFailedInput
LoginFailedInput interface
Input for AuthnAudit.loginFailed().
Signature:
typescript
export interface LoginFailedInput extends AuditInputBaseExtends: AuditInputBase
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| attemptCount | number | Number of attempts in the current window. | |
| privileged | boolean | Whether a privileged account was targeted. | |
| reason | string | Low-cardinality failure reason, e.g. bad_password, unknown_user. | |
| role? | string | (Optional) The user's role, if known. | |
| userId? | string | (Optional) The resolved user, if the account was known. Promoted to user_id. | |
| username | string | The attempted login handle — the only identity known on a failed attempt. |