Rust HTTP transport abstraction for Codex OAuth token requests.
// Source: https://github.com/PrimeIntellect-ai/prime-agent | License: MIT | Copyright 2025-2026 Prime Intellect Ltd
// Provided via justclaw.it.com; keep this notice with the code.
//! The subscription OAuth flows: Codex, Anthropic, GitHub Copilot, and
//! xAI. Transport-agnostic: the Codex flow issues its token requests
//! through [`CodexHttp`], the other three through [`ProviderHttp`];
//! tests script the endpoints.
mod anthropic;
mod anthropic_callback;
mod callback;
mod github_copilot;
mod openai_codex;
mod pkce;
mod provider_http;
mod types;
mod xai;
pub use anthropic::{
login_anthropic, refresh_anthropic_token, AnthropicCredentials,
LOGIN_CANCELLED as ANTHROPIC_LOGIN_CANCELLED,
};
pub use callback::CodexCallbackServer;
pub use github_copilot::{
get_github_copilot_bas
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key