Skip to content

Commit

Permalink
fix: fixed redirect from verify magic code []
Browse files Browse the repository at this point in the history
  • Loading branch information
Astitva877 committed Dec 18, 2024
1 parent db03ff0 commit 066be14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Auth/verify-magic-code/VerifyMagicCode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 066be14

Please sign in to comment.