fix(desktop):route auth deep links safely

This commit is contained in:
Anish Sarkar 2026-06-24 03:55:39 +05:30
parent 2fd7551d36
commit 65ab1cbdd4
2 changed files with 3 additions and 2 deletions

View file

@ -22,8 +22,7 @@ function handleDeepLink(url: string) {
path: parsed.pathname,
});
if (parsed.hostname === 'auth' && parsed.pathname === '/callback') {
const params = parsed.searchParams.toString();
win.loadURL(`${getServerOrigin()}/auth/callback?${params}`);
win.loadURL(`${getServerOrigin()}/dashboard`);
}
win.show();