Documentation
¶
Overview ¶
Package token persists the access tokens clover mints (e.g. via the GitHub device flow), keyed by host. It prefers the OS keyring (macOS Keychain, libsecret, Windows Credential Manager) and falls back to a 0600 file under the user config directory when no keyring is available, so headless environments still work. The CLI edge owns this; the pure core never sees a credential.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store reads and writes tokens by host, keyring-first with a file fallback.
func New ¶
New returns a Store whose file fallback lives under the user config directory (e.g. ~/.config/clover/hosts). The directory is created lazily on the first write that needs it.
func (*Store) Delete ¶
Delete removes any stored token for host from both the keyring and the file fallback. A missing token is not an error.