Skip to content

Home > @opengovsg/logging > LoginFailedInput

LoginFailedInput interface ​

Input for AuthnAudit.loginFailed().

Signature:

typescript
export interface LoginFailedInput extends AuditInputBase

Extends: AuditInputBase

Properties ​

PropertyModifiersTypeDescription
attemptCountnumberNumber of attempts in the current window.
privilegedbooleanWhether a privileged account was targeted.
reasonstringLow-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.
usernamestringThe attempted login handle — the only identity known on a failed attempt.