Skip to main content

Module codex_auth

Module codex_auth 

Source

Structs§

CodexAuthResolved

Constants§

OPENAI_CODEX_PROVIDER
QWEN_PORTAL_PROVIDER

Functions§

codex_auth_file_has_access_token
codex_config_default_openai_base_url
default_codex_auth_path
default_codex_config_path
default_qwen_oauth_creds_path
is_openai_codex_provider
is_qwen_portal_provider
openai_codex_auth_for_request
The Codex credentials for one request. Reads the auth file every time, so a token refreshed by the Codex CLI is picked up too, and refreshes the OAuth token first when it is about to expire or rejected (the token the server just turned down) is still the current one. Refresh errors are logged, not returned: the current token is still worth a try. OPENAI_CODEX_ACCESS_TOKEN is used as is and never refreshed.
provider_allows_empty_api_key
qwen_oauth_file_has_access_token
refresh_openai_codex_auth_if_needed
Refreshes an expired Codex access token in ~/.codex/auth.json.
resolve_openai_codex_auth
resolve_qwen_portal_auth