diff --git a/commands.go b/commands.go index 14ebe47b58..422dd07b46 100644 --- a/commands.go +++ b/commands.go @@ -98,6 +98,8 @@ func (srv *Server) CmdLogin(stdin io.ReadCloser, stdout io.Writer, args ...strin status, err := auth.Login(newAuthConfig) if err != nil { fmt.Fprintf(stdout, "Error : %s\n", err) + } else { + srv.runtime.authConfig = newAuthConfig } if status != "" { fmt.Fprintf(stdout, status)