diff --git a/packages/features/auth/lib/next-auth-options.ts b/packages/features/auth/lib/next-auth-options.ts index 122bfab85c..9d06eb62e5 100644 --- a/packages/features/auth/lib/next-auth-options.ts +++ b/packages/features/auth/lib/next-auth-options.ts @@ -616,10 +616,7 @@ export const AUTH_OPTIONS: AuthOptions = { ) { await prisma.user.update({ where: { - email_username: { - email: existingUserWithEmail.email, - username: existingUserWithEmail.username!, - }, + email: existingUserWithEmail.email, }, data: { // update the email to the IdP email