From 2d83b6c4025d594f763b7ea2a8f7ad5c17a62b24 Mon Sep 17 00:00:00 2001 From: besscroft Date: Sat, 6 Apr 2024 18:44:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20build=20=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;