mirror of
https://github.com/ollama/ollama.git
synced 2026-04-26 18:55:53 +02:00
Add functions to cache sign-in state locally at ~/.ollama/signin.json, enabling offline sign-in status checks without network calls. - SignInState struct with Name, Email, and CachedAt fields - GetSignInState() reads cached state from disk - SetSignInState() atomically writes state (temp file + rename) - ClearSignInState() removes the cached state file - IsSignedIn() quick check for valid cached sign-in