@@ -16,7 +16,7 @@ import (
1616 "github.com/cli/cli/internal/config"
1717 "github.com/cli/cli/internal/ghinstance"
1818 "github.com/cli/cli/internal/run"
19- "github.com/cli/cli/pkg/cmd/auth/client "
19+ "github.com/cli/cli/pkg/cmd/auth/shared "
2020 "github.com/cli/cli/pkg/cmdutil"
2121 "github.com/cli/cli/pkg/iostreams"
2222 "github.com/cli/cli/pkg/prompt"
@@ -138,7 +138,7 @@ func loginRun(opts *LoginOptions) error {
138138 return err
139139 }
140140
141- err = client .ValidateHostCfg (opts .Hostname , cfg )
141+ err = shared .ValidateHostCfg (opts .Hostname , cfg )
142142 if err != nil {
143143 return err
144144 }
@@ -182,9 +182,9 @@ func loginRun(opts *LoginOptions) error {
182182 existingToken , _ := cfg .Get (hostname , "oauth_token" )
183183
184184 if existingToken != "" && opts .Interactive {
185- err := client .ValidateHostCfg (hostname , cfg )
185+ err := shared .ValidateHostCfg (hostname , cfg )
186186 if err == nil {
187- apiClient , err := client .ClientFromCfg (hostname , cfg )
187+ apiClient , err := shared .ClientFromCfg (hostname , cfg )
188188 if err != nil {
189189 return err
190190 }
@@ -258,7 +258,7 @@ func loginRun(opts *LoginOptions) error {
258258 return err
259259 }
260260
261- err = client .ValidateHostCfg (hostname , cfg )
261+ err = shared .ValidateHostCfg (hostname , cfg )
262262 if err != nil {
263263 return err
264264 }
@@ -294,7 +294,7 @@ func loginRun(opts *LoginOptions) error {
294294 if userValidated {
295295 username , _ = cfg .Get (hostname , "user" )
296296 } else {
297- apiClient , err := client .ClientFromCfg (hostname , cfg )
297+ apiClient , err := shared .ClientFromCfg (hostname , cfg )
298298 if err != nil {
299299 return err
300300 }
0 commit comments