Versions in this module Expand all Collapse all v0 v0.2.0 May 15, 2026 Changes in this version + type DeviceCodeResponse struct + DeviceCode string + ExpiresIn int + Interval int + UserCode string + VerificationURI string + type DeviceFlow struct + Config DeviceFlowConfig + HTTPClient *http.Client + func NewDeviceFlow(cfg DeviceFlowConfig) *DeviceFlow + func (df *DeviceFlow) PollForToken(ctx context.Context, deviceCode string) (*TokenResponse, error) + func (df *DeviceFlow) RequestCode(ctx context.Context) (*DeviceCodeResponse, error) + type DeviceFlowConfig struct + ClientID string + DeviceAuthURL string + ExpiresIn time.Duration + PollInterval time.Duration + Scopes []string + TokenURL string + type TokenResponse struct + AccessToken string + ExpiresIn int + RefreshToken string + Scope string + TokenType string v0.1.0 May 12, 2026 Changes in this version + func GenerateNonce() string + type OAuthFlow struct + ClientID string + Provider string + func (o *OAuthFlow) Callback(code string) (string, error) + func (o *OAuthFlow) Start() (string, error) + type SecureStorage struct + func NewSecureStorage(service string) *SecureStorage + func (s *SecureStorage) Get(account string) (string, error) + func (s *SecureStorage) Set(account, token string) error + type TokenStore struct + func NewTokenStore() *TokenStore + func (t *TokenStore) Get(provider string) string + func (t *TokenStore) Has(provider string) bool + func (t *TokenStore) Load() error + func (t *TokenStore) Save() error + func (t *TokenStore) Set(provider, token string)