diff --git a/src/app/api/auth/[...nextauth]/route.ts b/src/app/api/auth/[...nextauth]/route.ts index a1335e8..fb3b4cc 100644 --- a/src/app/api/auth/[...nextauth]/route.ts +++ b/src/app/api/auth/[...nextauth]/route.ts @@ -33,7 +33,7 @@ export const AuthOptions: NextAuthOptions = { callbacks: { async signIn({ user, account }) { try { - if (user == null || user.email == null) { + if (user === null || user.email === null) { return "/beta"; } @@ -47,7 +47,7 @@ export const AuthOptions: NextAuthOptions = { return false; } - if (dbUser.length !== 0 || account == null) { + if (dbUser.length === 0 || account === null) { return "/beta"; }