Skip to content

Commit

Permalink
fix: github login route
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmanNik committed Dec 20, 2023
1 parent b3a0348 commit 0a40599
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/routes/login/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@
url = `${base}/console${$page.url.search ?? ''}`;
}
}
sdk.forConsole.account.createOAuth2Session('github', url, window.location.origin, [
'read:user',
'user:email'
]);
sdk.forConsole.account.createOAuth2Session(
'github',
window.location.origin + url,
window.location.origin,
['read:user', 'user:email']
);
}
</script>

Expand Down

0 comments on commit 0a40599

Please sign in to comment.