Structs§
- Device
Code Start - Pkce
State - PKCE state container for OAuth2 authorization code flow.
Constants§
- OPENAI_
OAUTH_ AUTHORIZE_ URL - OPENAI_
OAUTH_ CLIENT_ ID - OPENAI_
OAUTH_ DEVICE_ CODE_ URL - OPENAI_
OAUTH_ REDIRECT_ URI - OPENAI_
OAUTH_ TOKEN_ URL
Functions§
- build_
authorize_ url - exchange_
code_ for_ tokens - extract_
account_ id_ from_ jwt - extract_
expiry_ from_ jwt - generate_
pkce_ state - Generate a new PKCE state with cryptographically random values.
- import_
codex_ auth_ profile - Import an existing OpenAI Codex auth-profile JSON (the file
~/.codex/auth.jsonproduced by the upstream Codex CLI) into ZeroClaw’s auth store. Replaces theimport_openai_codex_auth_profilehelper formerly insrc/main.rs. - parse_
code_ from_ redirect - poll_
device_ code_ tokens - receive_
loopback_ code - refresh_
access_ token - start_
device_ code_ flow