Skip to content

Scheduling infrastructure for absolutely everyone.

fix: lowercase email when loggin in (#1038)

Mihai C1043b31cc7c0
diff --git a/pages/api/auth/[...nextauth].tsx b/pages/api/auth/[...nextauth].tsx
index 68c5140e67d..c13174691da 100644
--- a/pages/api/auth/[...nextauth].tsx
+++ b/pages/api/auth/[...nextauth].tsx
@@ -29,7 +29,7 @@ export default NextAuth({
async authorize(credentials) {
const user = await prisma.user.findUnique({
where: {
- email: credentials.email,
+ email: credentials.email.toLowerCase(),
},
});