Expand description
CLI and desktop presentation of the provider’s Codex sign-in.
Structs§
- Prompt
- What a sign-in asks the person to do: open
url, and whether the browser can return to this machine’s callback (when the port is taken, only a pasted redirect URL finishes it). - Timestamp
Enums§
- Callback
Port - The registered redirect, or a private loopback redirect for a test provider.
- File
Expiry - Known read-only import fields. Wrong-typed optional fields retain the old missing/null behavior; extra fields are ignored and no credential data is echoed in parse errors. A read-only file can carry a usable token without an expiry claim. An expired file reports no timestamp because the existing reader refuses it before returning a token.
- Status
- Offline sign-in states: only file states have a path, only stored states have a mandatory expiry, and a storage refusal can only accompany an absent sign-in.
- Stored
Expiry - Owned credentials always carry the expiry saved by the token exchange.
Constants§
- AUTH_
FILE_ VARIABLE - A Codex auth file (for example
~/.codex/auth.json) to read instead of artifactize’s own tokens. It is never written, copied or refreshed. - AUTH_
URL_ VARIABLE - A loopback test endpoint replacing the sign-in root, beside the backends’ own.
- CALLBACK_
PATH - CALLBACK_
PORT - Match the localhost callback convention of the Codex public-client flow that Pi also uses; listener and OAuth redirect must agree for browser/pasted-URL interoperability.