Versions in this module Expand all Collapse all v0 v0.1.1 Aug 21, 2026 v0.1.0 Aug 19, 2026 Changes in this version + const AuthTimeout + const ClientIDEnv + const ClientSecretEnv + const PassphraseEnv + var ErrNoBackend = errors.New(...) + var ErrNotFound = errors.New("auth: not found") + var Scopes = []string + func Authorize(ctx context.Context, creds ClientCredentials, onURL func(url string)) (*oauth2.Token, error) + func Config(c ClientCredentials, redirectURL string) *oauth2.Config + func HasBuiltin() bool + func OpenBrowser(url string) error + func TokenSource(ctx context.Context, creds ClientCredentials, tok *oauth2.Token, store *Store) oauth2.TokenSource + type ClientCredentials struct + ClientID string + ClientSecret string + func Builtin() (ClientCredentials, bool) + func (c ClientCredentials) Valid() bool + type Store struct + func NewStore() (*Store, error) + func (s *Store) Backend() string + func (s *Store) Clear() error + func (s *Store) LoadAccount() (string, error) + func (s *Store) LoadClient() (ClientCredentials, error) + func (s *Store) LoadToken() (*oauth2.Token, error) + func (s *Store) SaveAccount(addr string) error + func (s *Store) SaveClient(c ClientCredentials) error + func (s *Store) SaveToken(t *oauth2.Token) error