Versions in this module Expand all Collapse all v2 v2.1.1 Oct 6, 2026 v2.1.0 Oct 6, 2026 Changes in this version + const ExtensionDaemonKey + func DeleteAllCredentials() error + func DeleteCredential(provider string) error + func DeleteCredentials(providers ...string) error + func SetCredential(provider string, cred *AuthCredential) error + type AuthCredential struct + AccessToken string + AccountID string + AuthMethod string + ExpiresAt time.Time + IDToken string + Metadata map[string]string + Provider string + RefreshToken string + Revision string + TokenType string + func GetCredential(provider string) (*AuthCredential, error) + func LoginPasteToken(provider string, r io.Reader) (*AuthCredential, error) + func (c *AuthCredential) IsExpired() bool + func (c *AuthCredential) NeedsRefresh() bool + type AuthStore struct + Credentials map[string]*AuthCredential + func LoadStore() (*AuthStore, error) + type TokenStore struct + func DefaultTokenStore() *TokenStore + func OpenTokenStore(path string) *TokenStore + func (s *TokenStore) Lease(ctx context.Context, key string) (func(), error) + func (s *TokenStore) Load(ctx context.Context, key string) (tokenstore.Record, error) + func (s *TokenStore) ReplaceIfCurrent(ctx context.Context, key, revision string, record tokenstore.Record) (tokenstore.Record, error) + func (s *TokenStore) RevokeIfCurrent(ctx context.Context, key, revision string) error + func (s *TokenStore) Save(ctx context.Context, key string, record tokenstore.Record) (tokenstore.Record, error) Other modules containing this package github.com/xibodev/compa