Skip to main content

default_codex_auth_path

Function default_codex_auth_path 

Source
pub fn default_codex_auth_path() -> Result<PathBuf>
Expand description

Build the default path to ~/.codex/auth.json without creating any directories.

This is a read-only lookup, distinct from get_auth_path which both resolves the path and creates the .codex directory as a side effect for the write path. Intended for callers that need to read the user’s existing auth file (e.g., importing into a cc-switch configuration).