HTTP header builder for OAuth-authenticated requests. Ports the consumer-facing ``getOAuthHeaders`` helper from ``typescript/src/utils/teleport/api.ts``. The rest of the TS file (the teleport API client) is out of scope for the bridge orchestrator port. Used by ``createSession.ts
# Source: https://github.com/agentforce314/clawcodex | License: MIT | Copyright 2026 Clawd Codex Team # Provided via justclaw.it.com; keep this notice with the code. """HTTP header builder for OAuth-authenticated requests. Ports the consumer-facing ``getOAuthHeaders`` helper from ``typescript/src/utils/teleport/api.ts``. The rest of the TS file (the teleport API client) is out of scope for the bridge orchestrator port. Used by ``createSession.ts``, ``archiveBridgeSession``, ``updateBridgeSessionTitle``, and the v1 ``bridgeApi.ts`` to build the standard ``Authorization`` + ``anthropic-version`` + ``Content-Type`` header set for OAuth-authed requests. """ from __future__ import annotations ANTHROPIC_VERSION = '2023-06-01' """Anthropic API version header value. Mirrors TS hardcoded ``'a ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key