Skip to content

Commit

Permalink
fix: 修复 build 问题
Browse files Browse the repository at this point in the history
  • Loading branch information
besscroft committed Apr 6, 2024
1 parent 36cc61c commit 2d83b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2d83b6c

Please sign in to comment.