fix(auth): find account better

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-12-21 10:42:40 +01:00
parent b6ab9d3bb9
commit a32b8b37bd
3 changed files with 13 additions and 0 deletions

View File

@@ -128,6 +128,11 @@ export async function githubCallback(
provider: 'github',
providerId: String(githubUserId),
},
{
provider: 'github',
providerId: null,
email,
},
{
provider: 'oauth',
user: {
@@ -325,6 +330,11 @@ export async function googleCallback(
provider: 'google',
providerId: googleId,
},
{
provider: 'google',
providerId: null,
email,
},
{
provider: 'oauth',
user: {