Skip to main content

Module auth_cache

Module auth_cache 

Source
Expand description

On-disk token cache at ~/.config/dsp-cli/auth.toml. See ADR-0007 and ADR-0012.

Tokens are keyed by server URL. The file is written atomically via a <filename>.<pid> sibling file followed by a rename, so the original file is intact if a crash interrupts mid-write. Concurrent writes use a last-writer-wins policy: whichever rename runs last wins. The <pid> suffix prevents temp-file collisions between concurrent invocations.

Structs§

AuthCache
In-memory view of ~/.config/dsp-cli/auth.toml.
ServerEntry
One entry in the cache — token plus optional metadata.