diff --git a/frontend/lib/auth.ts b/frontend/lib/auth.ts index d3b268a59..b3cea9e2e 100644 --- a/frontend/lib/auth.ts +++ b/frontend/lib/auth.ts @@ -133,7 +133,8 @@ export const authOptions: NextAuthOptions = { async signIn({ user, account }) { const list = await getEmailsConfig(); if (account?.provider === "github" && user?.email && !!list) { - return list.includes(user.email); + const emailLower = user.email.toLowerCase(); + return list.some((e) => e.toLowerCase() === emailLower); } return true; },