fix(auth): more auth things

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-12-21 11:18:06 +01:00
parent eb2abd6027
commit b6bdcddcbe
3 changed files with 8 additions and 10 deletions

View File

@@ -15,7 +15,10 @@ export async function getUserAccount({
}: { email: string; provider: string; providerId?: string }) {
const res = await db.user.findFirst({
where: {
email,
email: {
equals: email,
mode: 'insensitive',
},
},
include: {
accounts: {