Skip to content

miniproto.errors.InvalidCode

InvalidCode(message: str = 'invalid phone code', *, request: object | None = None, context: Mapping[str, Any] | None = None) -> None

Bases: AuthError

Authentication flow failure for a missing, expired, or invalid phone code.

Create an invalid-code failure with status code 400.

Parameters:

  • message (str) – Phone-code failure text.
  • request (object | None) – Optional sign-in request associated with the failure.
  • context (Mapping[str, Any] | None) – Optional secret-safe diagnostic metadata.