From 066be14dd120609a704776a6fb638e41ba2bd456 Mon Sep 17 00:00:00 2001 From: Astitva Patle Date: Wed, 18 Dec 2024 13:36:27 +0530 Subject: [PATCH] fix: fixed redirect from verify magic code [] --- src/pages/Auth/verify-magic-code/VerifyMagicCode.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Auth/verify-magic-code/VerifyMagicCode.svelte b/src/pages/Auth/verify-magic-code/VerifyMagicCode.svelte index de648ef..27d6344 100644 --- a/src/pages/Auth/verify-magic-code/VerifyMagicCode.svelte +++ b/src/pages/Auth/verify-magic-code/VerifyMagicCode.svelte @@ -592,10 +592,10 @@ isRegistered = true; const accessToken = response?.data.accessToken?.token; const refreshToken = response?.data.refreshToken?.token; - const sparrowRedirect = `sparrow://?accessToken=${accessToken}&refreshToken=${refreshToken}&response=${JSON.stringify(response.data)}&event=register&method=email`; + const sparrowRedirect = `sparrow://?accessToken=${accessToken}&refreshToken=${refreshToken}&response=${JSON.stringify(response.data)}&event=login&method=email`; const sparrowWebRedirect = constants.SPARROW_WEB_URL + - `?accessToken=${accessToken}&refreshToken=${refreshToken}&response=${JSON.stringify(response)}&event=register&method=email`; + `?accessToken=${accessToken}&refreshToken=${refreshToken}&response=${JSON.stringify(response)}&event=login&method=email`; if (userFromDesktop === 'true') { setTimeout(() => {