diff --git a/server/auth.ts b/server/auth.ts index 1e394ab..b80b80f 100644 --- a/server/auth.ts +++ b/server/auth.ts @@ -39,7 +39,7 @@ export const { handlers, auth, signIn, signOut } = NextAuth({ }, }) - const hashedPassword = CryptoJS.HmacSHA512(password, process.env.SECRET_KEY).toString() + const hashedPassword = CryptoJS.HmacSHA512(password, process.env.SECRET_KEY || '').toString() if (user && hashedPassword === user.password) { return user;