fix(auth): map oauth login to correct user id instead of account id (#3256)

This commit is contained in:
Rakshit Kaintura
2026-07-27 13:38:30 +02:00
committed by GitHub
parent 0eb9ce012e
commit 34c03b1f73
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ export function createProfileMapper<TProfile extends OAuthProfile>({
await normalizeExistingUserEmail(existingUser.id, existingUser.email, existingEmail);
return {
...(existingUser.accountId ? { id: existingUser.accountId } : {}),
id: existingUser.id,
name: existingUser.name,
email: existingEmail,
image: image ?? existingUser.image,