Versions in this module Expand all Collapse all v1 v1.2.1 Nov 13, 2025 Changes in this version + type BrowserParams struct + AllowSignup bool + Audience string + ClientID string + LoginHandle string + RedirectURI string + Scopes []string + type CodeResponse struct + Code string + State string + type Flow struct + func InitFlow() (*Flow, error) + func (flow *Flow) AccessToken(c httpClient, tokenURL, clientSecret string) (*api.AccessToken, error) + func (flow *Flow) BrowserURL(baseURL string, params BrowserParams) (string, error) + func (flow *Flow) StartServer(writeSuccess func(io.Writer)) error + func (flow *Flow) Wait(ctx context.Context, c httpClient, tokenURL string, opts WaitOptions) (*api.AccessToken, error) + type WaitOptions struct + ClientSecret string