Skip to content

Commit

Permalink
Merge pull request #97 from sparrowapp-dev/astitva/login-revamp
Browse files Browse the repository at this point in the history
fix: fixed redirect from verify magic code []
  • Loading branch information
itsmdasifraza authored Dec 18, 2024
2 parents c415a8d + 066be14 commit 00f970e
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 00f970e

Please sign in to comment.