diegosouzapw/OmniRoute · error

paste-credentials not supported for provider: ${routeProvide

Error message

paste-credentials not supported for provider: ${routeProvider}. Supported: ${[...PASTE_CREDENTIAL_PROVIDERS].join(", ")}

What it means

Error "paste-credentials not supported for provider: ${routeProvider}. Supported: ${[...PASTE_CREDENTIAL_PROVIDERS].join(", ")}" thrown in diegosouzapw/OmniRoute.

Source

Thrown at src/lib/oauth/pasteCredentials.ts:34

import { decodeCredentialBlob, type CredentialBlob } from "./credentialBlob";

/**
 * Providers eligible for the paste-credentials flow: Google native-loopback
 * clients whose consent cannot complete on a headless/remote host. `agy` is the
 * Antigravity alias. Codex is intentionally excluded — it has its own browser
 * device flow (`device-complete`) that works remotely.
 */
export const PASTE_CREDENTIAL_PROVIDERS = new Set(["antigravity", "agy"]);

/**
 * Validate + decode a pasted credential blob for a given route provider.
 * Throws a descriptive error if the provider is not allowlisted, if the blob's
 * embedded provider does not match, or if the blob itself is malformed.
 */
export function parsePastedCredentials(routeProvider: string, blob: string): CredentialBlob {
  if (!PASTE_CREDENTIAL_PROVIDERS.has(routeProvider)) {
    throw new Error(
      `paste-credentials not supported for provider: ${routeProvider}. ` +
        `Supported: ${[...PASTE_CREDENTIAL_PROVIDERS].join(", ")}`
    );
  }

  // decodeCredentialBlob validates prefix/version/JSON shape + access_token.
  const decoded = decodeCredentialBlob(blob);

  if (decoded.provider !== routeProvider) {
    throw new Error(
      `Pasted credential provider mismatch: blob is for "${decoded.provider}" ` +
        `but the route provider is "${routeProvider}"`
    );
  }

  return decoded;
}

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at src/lib/oauth/pasteCredentials.ts:34 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/03fc5ccb44c32b8f. Report an issue: GitHub.