Skip to content

miniproto.errors.PasswordInvalid

PasswordInvalid(message: str = 'invalid 2FA password', *, request: object | None = None, context: Mapping[str, Any] | None = None) -> None

Bases: AuthError

Authentication flow received an invalid two-factor password.

Create a password-invalid failure with status code 400.

Parameters:

  • message (str) – Two-factor-password failure text.
  • request (object | None) – Optional password-check request associated with the failure.
  • context (Mapping[str, Any] | None) – Optional secret-safe diagnostic metadata.