Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/cli/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading