Versions in this module Expand all Collapse all v1 v1.2.1 Nov 13, 2025 Changes in this version + var ErrTimeout = errors.New("authentication timed out") + var ErrUnsupported = errors.New("device flow not supported") + func PollToken(c httpClient, pollURL string, clientID string, code *CodeResponse) (*api.AccessToken, error) + func Wait(ctx context.Context, c httpClient, uri string, opts WaitOptions) (*api.AccessToken, error) + type AuthRequestEditorFn func(*url.Values) + func WithAudience(audience string) AuthRequestEditorFn + type CodeResponse struct + DeviceCode string + ExpiresIn int + Interval int + UserCode string + VerificationURI string + VerificationURIComplete string + func RequestCode(c httpClient, uri string, clientID string, scopes []string, ...) (*CodeResponse, error) + type WaitOptions struct + ClientID string + ClientSecret string + DeviceCode *CodeResponse + GrantType string