From e6d39eb886610e7f74e76cc83085c5d96c8afd14 Mon Sep 17 00:00:00 2001 From: Ulf Adams Date: Mon, 6 Mar 2023 22:43:59 +0100 Subject: [PATCH] Print the login URL even when opening a browser Fixes https://github.com/cli/cli/issues/5500. --- internal/authflow/flow.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/authflow/flow.go b/internal/authflow/flow.go index 370e08784..3fc753b44 100644 --- a/internal/authflow/flow.go +++ b/internal/authflow/flow.go @@ -72,7 +72,7 @@ func AuthFlow(oauthHost string, IO *iostreams.IOStreams, notice string, addition return nil } - fmt.Fprintf(w, "%s to open %s in your browser... ", cs.Bold("Press Enter"), oauthHost) + fmt.Fprintf(w, "%s to open %s in your browser... ", cs.Bold("Press Enter"), authURL) _ = waitForEnter(IO.In) if err := b.Browse(authURL); err != nil {