diff --git a/src/pages/Auth/redirect/Redirect.svelte b/src/pages/Auth/redirect/Redirect.svelte index b3444f7..6f94a06 100644 --- a/src/pages/Auth/redirect/Redirect.svelte +++ b/src/pages/Auth/redirect/Redirect.svelte @@ -5,6 +5,7 @@ import Button from '$lib/components/button/Button.svelte'; import SupportHelp from '$lib/components/help/SupportHelp.svelte'; import Spinner from '$lib/components/transition/Spinner.svelte'; + import { onMount } from 'svelte'; export let title="Title"; export let description= "Description"; @@ -14,6 +15,10 @@ export let buttonClick = () => {} ; export let copyLink = () => {} ; export let loadingMessage = ""; + let userFromDesktop = true; + onMount(() => { + userFromDesktop = localStorage.getItem('isUserFromDesktop'); + }) @@ -50,6 +55,8 @@ {/if} + {#if userFromDesktop} +
+ {/if} +
diff --git a/src/pages/Auth/verify-magic-code/VerifyMagicCode.svelte b/src/pages/Auth/verify-magic-code/VerifyMagicCode.svelte index d65bb7d..990ac2f 100644 --- a/src/pages/Auth/verify-magic-code/VerifyMagicCode.svelte +++ b/src/pages/Auth/verify-magic-code/VerifyMagicCode.svelte @@ -594,10 +594,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=login&method=email`; + const sparrowRedirect = `sparrow://?accessToken=${accessToken}&refreshToken=${refreshToken}&response=${JSON.stringify(response.data)}&event=login&method=code`; const sparrowWebRedirect = constants.SPARROW_WEB_URL + - `?accessToken=${accessToken}&refreshToken=${refreshToken}&response=${JSON.stringify(response)}&event=login&method=email`; + `?accessToken=${accessToken}&refreshToken=${refreshToken}&response=${JSON.stringify(response)}&event=login&method=code`; if (userFromDesktop === 'true') { setTimeout(() => {