Skip to content

Commit

Permalink
fix(auth): allow opening browser to fail silently during auth (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
rektdeckard authored Oct 2, 2024
1 parent f76b8e0 commit 4604f94
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/lk/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,7 @@ func tryAuthIfNeeded(ctx context.Context, cmd *cli.Command) error {

// poll for keys
fmt.Printf("Please confirm access by visiting:\n\n %s\n\n", authURL.String())
if err := browser.OpenURL(authURL.String()); err != nil {
return err
}
browser.OpenURL(authURL.String()) // discard result; this will fail in headless environments

var ak *ClaimAccessKeyResponse
var pollErr error
Expand Down

0 comments on commit 4604f94

Please sign in to comment.