Fixed silly sign in bug

This commit is contained in:
Khalim Conn-Kowlessar 2023-07-11 10:43:39 +01:00
parent 64f5649db1
commit d864afb244

View file

@ -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";
}