Skip to content

Commit

Permalink
Merge pull request #62 from sparrowapp-dev/feat/implement-redirect-ru…
Browse files Browse the repository at this point in the history
…le-for-login-register

Feat/implement redirect rule for login register
  • Loading branch information
Astitva877 authored Oct 7, 2024
2 parents 50b3edb + 7b45421 commit b4c2a1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/Auth/oauth-redirect/OauthRedirect.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
const urlParams = new URLSearchParams(window.location.search);
const accessToken = urlParams.get('accessToken');
const refreshToken = urlParams.get('refreshToken');
const sparrowRedirect = `sparrow://?accessToken=${accessToken}&refreshToken=${refreshToken}&event=login`;
const source = urlParams.get('source');
const sparrowRedirect = `sparrow://?accessToken=${accessToken}&refreshToken=${refreshToken}&event=${source}`;
if (accessToken && refreshToken) {
setTimeout(() => {
Expand Down

0 comments on commit b4c2a1a

Please sign in to comment.