Documentation
¶
Overview ¶
Package auth stores the claude.ai session cookie in the OS keychain.
On macOS this is Keychain Access; on Windows it's Credential Manager; on Linux it's Secret Service (gnome-keyring / kwallet). All via zalando/go-keyring.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotLoggedIn = errors.New("not logged in (no credential in keychain)")
ErrNotLoggedIn is returned when no credential is stored.
Functions ¶
func DeleteCookie ¶
func DeleteCookie() error
DeleteCookie removes the stored credential. Idempotent.
func LoadCookie ¶
LoadCookie returns the stored session cookie, or ErrNotLoggedIn if none.
func SaveCookie ¶
SaveCookie stores the session cookie under our service in the OS keychain. Overwrites any previous value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.