diegosouzapw/OmniRoute · error

AUTH_007

AUTH_007

Error message

Session expired (re-login required)

What it means

AUTH_007 (401): the stored session/token has expired and the refresh flow cannot renew it silently — an interactive re-login is required. Typically raised for OAuth/web-session connections whose refresh token is dead.

Solutions

  1. Re-authenticate the connection via the dashboard OAuth flow
  2. Trigger the credential health check to re-probe and mark the connection
  3. Route traffic to another connection/provider until re-login completes
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at src/shared/constants/errorCodes.ts:51 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25). Data as JSON: /api/errors/40448fdc5eb35606. Report an issue: GitHub.

Appendix: source

Thrown at src/shared/constants/errorCodes.ts:51

    category: "AUTH",
  },
  AUTH_002: { code: "AUTH_002", message: "Invalid API key", httpStatus: 401, category: "AUTH" },
  AUTH_003: { code: "AUTH_003", message: "API key expired", httpStatus: 401, category: "AUTH" },
  AUTH_004: {
    code: "AUTH_004",
    message: "Insufficient permissions",
    httpStatus: 403,
    category: "AUTH",
  },
  AUTH_005: { code: "AUTH_005", message: "Account locked", httpStatus: 423, category: "AUTH" },
  AUTH_006: {
    code: "AUTH_006",
    message: "No credentials for provider",
    httpStatus: 400,
    category: "AUTH",
  },
  AUTH_007: {
    code: "AUTH_007",
    message: "Session expired (re-login required)",
    httpStatus: 401,
    category: "AUTH",
  },

  // ── Proxy ──
  PROXY_001: {
    code: "PROXY_001",
    message: "Proxy connection failed",
    httpStatus: 502,
    category: "PROXY",
  },
  PROXY_002: { code: "PROXY_002", message: "Proxy timeout", httpStatus: 504, category: "PROXY" },
  PROXY_003: {
    code: "PROXY_003",
    message: "All proxies exhausted",
    httpStatus: 503,
    category: "PROXY",

View on GitHub (pinned to a179ffed5b)