getWebSessionCredentialRequirement (providers/webSessionCredentials.ts)

Omniroute- · src/shared/providers/webSessionCredentials.ts · typescript · MIT
auth

Module exposing: getWebSessionCredentialRequirement, canUpdateProviderApiKey, requiresWebSessionCredential, hasUsableWebSessionCredential, resolveWebSessionImportApiKey, WEB_SESSION_CREDENTIAL_REQUIREMENTS, hasNonEmptyString

// Source: https://github.com/mdfahim-code/Omniroute- | License: MIT | Copyright 2026 diegosouzapw
// Provided via justclaw.it.com; keep this notice with the code.
import { WEB_COOKIE_PROVIDERS } from "@/shared/constants/providers";

export type WebSessionCredentialRequirement =
  | {
      kind: "cookie" | "token";
      credentialName: string;
      placeholder: string;
      acceptsFullCookieHeader: boolean;
      storageKeys: readonly string[];
      /**
       * #5465 — Optional i18n key for a provider-specific credential hint that
       * REPLACES the generic "Required cookie: {credential}…" copy. Use when the
       * generic template is confusing (e.g. t3.chat needs a localStorage value
       * AND the Cookie header, so the one-line cookie hint reads circular).
       */
      hi

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key