Error codes

OTP_EXPIRED

The sign-in code expired.

Exit code: 2 · Who acts: You: correct the request or the environment · From: the CLI, the SDK and the backend

What it means

The sign-in code expired.

Common causes

  • The code is valid for a short time only, or a newer code replaced it.

Fix it

  1. Ask for a new code: capxul auth login.

In JSON and the SDK

With --json, the CLI prints:

{
  "outcome": "refused",
  "error": {
    "code": "OTP_EXPIRED",
    "message": "…"
  }
}

In the SDK, a failed result has result.error.code === "OTP_EXPIRED". Branch on the code, not on the message: the message is written for people and can change.

Commands that can answer with it

No command lists this code. It can still come from the SDK or the backend.

On this page