Managed ChatGPT OAuth credentials for the Codex backend.
Managed ChatGPT OAuth credentials for the Codex backend.
(codex-backend-auth-headers)(codex-backend-auth-headers profile)Build Codex backend headers without initiating a refresh. With a profile, explicit host credentials take precedence over the managed auth file.
Build Codex backend headers without initiating a refresh. With a profile, explicit host credentials take precedence over the managed auth file.
(codex-backend-available?)Return true when the managed auth file contains an access token.
Return true when the managed auth file contains an access token.
(read-codex-auth)Read and cache managed Codex CLI credentials from CODEX_HOME/auth.json. Returns nil when the file is absent, malformed, or lacks an access token.
Read and cache managed Codex CLI credentials from CODEX_HOME/auth.json. Returns nil when the file is absent, malformed, or lacks an access token.
(request-auth profile)Resolve authentication for one native Codex request.
Explicit :profile/auth-token credentials are host-managed and never touch or refresh auth.json. Managed file credentials refresh proactively when their access JWT expires within five minutes or last_refresh is over eight days old. The returned one-shot :recover! callback reloads the file before a 401 recovery and returns fresh headers.
Resolve authentication for one native Codex request. Explicit :profile/auth-token credentials are host-managed and never touch or refresh auth.json. Managed file credentials refresh proactively when their access JWT expires within five minutes or last_refresh is over eight days old. The returned one-shot :recover! callback reloads the file before a 401 recovery and returns fresh headers.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |