OAuth Provider Registry (providers/index.ts)

omniroute-slim · src/lib/oauth/providers/index.ts · typescript · MIT
auth, integration, lang:typescript

A centralized registry for managing multiple OAuth authentication provider configurations and flows. Use this to streamline adding or managing external auth integrations.

// Source: https://github.com/b3nw/omniroute-slim | License: MIT | Copyright 2026 diegosouzapw
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * OAuth Provider Registry — Extracted from monolithic providers.js
 *
 * Each provider is now defined in its own module under providers/.
 * This index re-exports the full PROVIDERS map and utility functions.
 *
 * Provider modules follow the interface:
 *   { config, flowType, buildAuthUrl?, exchangeToken?, requestDeviceCode?, pollToken?, postExchange?, mapTokens }
 *
 * @module lib/oauth/providers/index
 */

import { claude } from "./claude";
import { codex } from "./codex";
import { antigravity } from "./antigravity";
import { agy } from "./agy";
import { geminiCli } from "./gemini-cli";
import { qoder } from "./qoder";
impo

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

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

Get a free API key