Un-export AuthFlow

This commit is contained in:
Mislav Marohnić 2020-06-03 13:43:54 +02:00
parent 8e70fe939d
commit c1a518ef8e

View file

@ -26,7 +26,7 @@ func IsGitHubApp(id string) bool {
}
func AuthFlowWithConfig(cfg Config, hostname, notice string) (string, error) {
token, userLogin, err := AuthFlow(hostname, notice)
token, userLogin, err := authFlow(hostname, notice)
if err != nil {
return "", err
}
@ -49,7 +49,7 @@ func AuthFlowWithConfig(cfg Config, hostname, notice string) (string, error) {
return token, nil
}
func AuthFlow(oauthHost, notice string) (string, string, error) {
func authFlow(oauthHost, notice string) (string, string, error) {
var verboseStream io.Writer
if strings.Contains(os.Getenv("DEBUG"), "oauth") {
verboseStream = os.Stderr