From 57a41baac9862e3358c2ca1c7fa9374323a943db Mon Sep 17 00:00:00 2001 From: Captain Smasduq Date: Sat, 7 Nov 2026 17:55:00 +0100 Subject: [PATCH] Open device authorization page for CLI login --- crates/cli/src/auth.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/cli/src/auth.rs b/crates/cli/src/auth.rs index 453d31b..23e361b 100644 --- a/crates/cli/src/auth.rs +++ b/crates/cli/src/auth.rs @@ -311,9 +311,9 @@ pub fn login_interactive() -> Result<()> { /// against a manual key paste and log in with whichever arrives first. async fn login_interactive_async() -> Result<()> { let redirect = format!("http://127.0.0.1:{CALLBACK_PORT}/callback"); - let login_url = format!("{FRONTEND_URL}/login?redirect={redirect}"); - println!("Opening your browser to sign in: {login_url}"); - let _ = webbrowser::open(&login_url); + let connect_url = format!("{FRONTEND_URL}/cli/connect?redirect={redirect}"); + println!("Opening your browser to authorize this device: {connect_url}"); + let _ = webbrowser::open(&connect_url); // Stand up the local callback server when the port is free; otherwise // fall back to paste-only.