Documentation
¶
Overview ¶
Package auth stores bot tokens out of plaintext. The OS keyring (macOS Keychain, Linux Secret Service, Windows Credential Manager) is primary; an encrypted file is the fallback for headless hosts where no keyring is available (GOAL.md §1).
Index ¶
Constants ¶
View Source
const Service = "linkedin-cli"
Service is the keyring service name under which tokens are stored, keyed by profile.
Variables ¶
View Source
var ErrNotFound = errors.New("no token stored for this profile")
ErrNotFound is returned when no token is stored for a profile.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface {
Set(profile, token string) error
Get(profile string) (string, error)
Delete(profile string) error
// Backend names where the token currently lives ("keyring" or "file"), for doctor output.
Backend() string
}
Store persists and retrieves a per-profile secret token.
Click to show internal directories.
Click to hide internal directories.