Fix duplicate output of interactive login (#334)

This commit is contained in:
Misha Bragin
2022-05-27 13:55:24 +02:00
committed by GitHub
parent 59ae10a66d
commit 889fa646fc
2 changed files with 8 additions and 13 deletions

View File

@ -97,11 +97,7 @@ var upCmd = &cobra.Command{
if loginResp.NeedsSSOLogin {
openURL(cmd, loginResp.VerificationURI, loginResp.VerificationURIComplete, loginResp.UserCode)
cmd.Printf("Please do the SSO login in your browser. \n" +
"If your browser didn't open automatically, use this URL to log in:\n\n" +
" " + loginResp.VerificationURIComplete + " \n\n")
openURL(cmd, loginResp.VerificationURIComplete)
_, err = client.WaitSSOLogin(ctx, &proto.WaitSSOLoginRequest{UserCode: loginResp.UserCode})
if err != nil {