Crate agcodex_login

Crate agcodex_login 

Source

Structs§

AuthDotJson
Expected structure for $CODEX_HOME/auth.json.
CodexAuth
LoginServer
ServerOptions
ShutdownHandle
TokenData

Enums§

AuthMode

Constants§

CLIENT_ID
OPENAI_API_KEY_ENV_VAR

Functions§

get_auth_file
login_with_api_key
logout
Delete the auth.json file inside codex_home if it exists. Returns Ok(true) if a file was removed, Ok(false) if no auth file was present.
run_login_server
try_read_auth_json
Attempt to read and refresh the auth.json file in the given CODEX_HOME directory. Returns the full AuthDotJson structure after refreshing if necessary.