feat(auth): add remote browser listen address

This commit is contained in:
Kevin Yue committed 2026-08-06 22:19:50 +08:00
1 parent cc4d35c228
commit d1d9f0c6fc
8 files changed
+114 -16

No files matched your search

+6
View File
@@ -92,6 +92,12 @@ impl<'a> ConnectHandler<'a> {
}
pub(crate) async fn handle(&self) -> anyhow::Result<()> {
if self.args.browser_listen.is_some()
&& !matches!(self.args.browser.as_deref(), Some(browser) if browser.eq_ignore_ascii_case("remote"))
{
bail!("The '--browser-listen' option requires '--browser remote'");
}
#[cfg(feature = "webview-auth")]
if self.args.default_browser && self.args.browser.is_some() {
bail!("Cannot use `--default-browser` and `--browser` options at the same time");