diff --git a/oauth/src/lib.rs b/oauth/src/lib.rs index 707cc5779..61d59a545 100644 --- a/oauth/src/lib.rs +++ b/oauth/src/lib.rs @@ -250,7 +250,7 @@ impl OAuthClient { if self.should_open_url { open::that_in_background(auth_url.as_str()); } - println!("Browse to: {auth_url}"); + println!("Browse to: \x1b]8;;{auth_url}\x1b\\{auth_url}\x1b]8;;\x1b\\",); pkce_verifier } @@ -467,7 +467,7 @@ pub fn get_access_token( .set_pkce_challenge(pkce_challenge) .url(); - println!("Browse to: {auth_url}"); + println!("Browse to: \x1b]8;;{auth_url}\x1b\\{auth_url}\x1b]8;;\x1b\\",); let code = match get_socket_address(redirect_uri) { Some(addr) => get_authcode_listener(addr, String::from("Go back to your terminal :)")),