mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Merge pull request #670 from appwrite/fix-github-login
fix: github login route
This commit is contained in:
1 file changed
+6
-4
@@ -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>
|
||||
|
||||
|
||||
Reference in new issue
Block a user