Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix desktop app login (#5547)

Sean Ayee745b216d1a3
diff --git a/services/authentication_service/src/api/login/sso.rs b/services/authentication_service/src/api/login/sso.rs
index fa805b6de2..cb650cca84 100644
--- a/services/authentication_service/src/api/login/sso.rs
+++ b/services/authentication_service/src/api/login/sso.rs
@@ -38,7 +38,7 @@ pub(crate) struct LoginQueryParams {
fn is_allowed_original_url(url: &Url) -> bool {
match url.scheme() {
// The iOS app uses macro://login as its authentication callback.
- "macro" => url.host_str() == Some("login"),
+ "macro" => matches!(url.host_str(), Some("login" | "welcome")),
"tauri" => url.host_str() == Some("localhost"),
"http" => matches!(url.host_str(), Some("localhost" | "tauri.localhost")),
"https" => matches!(