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