diff --git a/src/pages/Auth/oauth-redirect/OauthRedirect.svelte b/src/pages/Auth/oauth-redirect/OauthRedirect.svelte index 82f4e8d..7a4d3df 100644 --- a/src/pages/Auth/oauth-redirect/OauthRedirect.svelte +++ b/src/pages/Auth/oauth-redirect/OauthRedirect.svelte @@ -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(() => {