diff --git a/packages/features/auth/lib/next-auth-options.ts b/packages/features/auth/lib/next-auth-options.ts index 0767004b9d5632..528bf29b4c51ca 100644 --- a/packages/features/auth/lib/next-auth-options.ts +++ b/packages/features/auth/lib/next-auth-options.ts @@ -843,7 +843,10 @@ export const getOptions = ({ }, where: { identityProvider: idP, - identityProviderId: account.providerAccountId, + identityProviderId: { + equals: account.providerAccountId, + mode: "insensitive", + }, }, });