Skip to content

Commit

Permalink
More explicit and concise device code instructions (#664)
Browse files Browse the repository at this point in the history
Simplifying browser instructions

Co-authored-by: Will Vedder <[email protected]>
  • Loading branch information
willvedd and willvedd authored Mar 7, 2023
1 parent 2998b3c commit 4c02d7b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/cli/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,9 @@ func RunLoginAsUser(ctx context.Context, cli *cli, additionalScopes []string) (T
return Tenant{}, fmt.Errorf("failed to get the device code: %w", err)
}

message := fmt.Sprintf("\n%s\n%s%s\n\n",
"A browser window needs to be opened to complete authentication.",
"Note your device confirmation code: ",
ansi.Bold(state.UserCode))
message := fmt.Sprintf("\n%s\n\n",
"Verify "+ansi.Bold(state.UserCode)+" code in opened browser window to complete authentication.",
)
cli.renderer.Output(message)

if cli.noInput {
Expand Down

0 comments on commit 4c02d7b

Please sign in to comment.