Versions in this module Expand all Collapse all v1 v1.0.0 Dec 12, 2025 Changes in this version + func AuthTokenWriteable(authCfg gh.AuthConfig, hostname string) (string, bool) + func GetCurrentLogin(httpClient httpClient, hostname, authToken string) (string, error) + func GetScopes(httpClient httpClient, hostname, authToken string) (string, error) + func HasMinimumScopes(httpClient httpClient, hostname, authToken string) error + func HeaderHasMinimumScopes(scopesHeader string) error + func Login(opts *LoginOptions) error + type GitCredentialFlow struct + HelperConfig HelperConfig + Prompter Prompt + Updater *gitcredentials.Updater + func (flow *GitCredentialFlow) Prompt(hostname string) error + func (flow *GitCredentialFlow) Scopes() []string + func (flow *GitCredentialFlow) Setup(hostname, username, authToken string) error + func (flow *GitCredentialFlow) ShouldSetup() bool + type HelperConfig interface + ConfigureOurs func(hostname string) error + ConfiguredHelper func(hostname string) (gitcredentials.Helper, error) + type LoginOptions struct + Config iconfig + CredentialFlow *GitCredentialFlow + GitProtocol string + HTTPClient *http.Client + Hostname string + IO *iostreams.IOStreams + Interactive bool + Prompter Prompt + SecureStorage bool + type MissingScopesError struct + MissingScopes []string + func (e MissingScopesError) Error() string + type Prompt interface + AuthToken func() (string, error) + Confirm func(string, bool) (bool, error) + Input func(string, string) (string, error) + InputHostname func() (string, error) + Password func(string) (string, error) + Select func(string, string, []string) (int, error)