Skip to content

Commit f2c8f48

Browse files
authored
fix(cli): set explicit empty callback URL (#1279)
Signed-off-by: Miguel Martinez <[email protected]>
1 parent d74e6d9 commit f2c8f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/cli/cmd/auth_login.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func interactiveAuth(forceHeadless bool) error {
113113
func headlessAuth(loginURL *url.URL) error {
114114
// Remove cli-callback query parameter to indicate the server to show it inline
115115
q := loginURL.Query()
116-
q.Del("callback")
116+
q.Set("callback", "")
117117
loginURL.RawQuery = q.Encode()
118118
fmt.Printf("To authenticate, click on the following link and paste the result back here\n\n %s\n\n", loginURL.String())
119119

0 commit comments

Comments
 (0)