Versions in this module Expand all Collapse all v1 v1.1.0 Mar 14, 2026 Changes in this version + func FormatDeviceUserCode(code string) string + type DeviceClient struct + func NewDeviceClient(baseURL string) *DeviceClient + func (c *DeviceClient) PollToken(deviceCode string) (*DeviceTokenResponse, error) + func (c *DeviceClient) RequestCode() (*DeviceCodeResponse, error) + type DeviceCodeResponse struct + DeviceCode string + ExpiresIn int + Interval int + UserCode string + VerificationURI string + type DeviceTokenResponse struct + APIKey string + AccessToken string type LoginResult + func LoginWithDeviceFlow(ctx context.Context, store credentials.Store, ...) (LoginResult, error) v1.0.0 Mar 13, 2026 Changes in this version + func BuildAuthorizeURL(apiKey, callbackURL string) string + func NewTokenCaptureServerForTest() (*tokenCaptureServer, error) + func RequireAuth(store credentials.Store, profile string) (credentials.Credentials, error) + type BrowserOpener func(string) error + type ClearResult struct + AuthMode *string + Configured bool + func Clear(store credentials.Store, profile string) (ClearResult, error) + type LoginResult struct + AuthMode *string + Configured bool + Member *Member + func CompleteLogin(ctx context.Context, store credentials.Store, ...) (LoginResult, error) + func Login(ctx context.Context, store credentials.Store, profile, baseURL, apiKey string, ...) (LoginResult, error) + type Member struct + FullName string + ID string + Username string + type SetKeyResult struct + AuthMode string + Configured bool + func SetKey(store credentials.Store, profile, apiKey string) (SetKeyResult, error) + type SetResult struct + AuthMode string + Configured bool + Member interface{} + func Set(store credentials.Store, profile, apiKey, token string) (SetResult, error) + type StatusResult struct + AuthMode *string + Configured bool + Member *Member + func Status(ctx context.Context, store credentials.Store, profile, baseURL string) (StatusResult, error)