Skip to content

Commit

Permalink
Merge pull request #670 from appwrite/fix-github-login
Browse files Browse the repository at this point in the history
fix: github login route
  • Loading branch information
eldadfux authored Dec 20, 2023
2 parents b3a0348 + 0a40599 commit 89018fe
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

3 comments on commit 89018fe

@vercel
Copy link

@vercel vercel bot commented on 89018fe Dec 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

console-preview – ./

console-next.vercel.app
console-preview-appwrite.vercel.app
console-preview-git-main-appwrite.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 89018fe Dec 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 89018fe Dec 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

console-cloud – ./

console-cloud-git-main-appwrite.vercel.app
console-cloud.vercel.app
console-cloud-appwrite.vercel.app

Please sign in to comment.