We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af86c7e commit 6d20dacCopy full SHA for 6d20dac
app/middleware/auth.js
@@ -1,10 +1,10 @@
1
const crypto = require('crypto')
2
3
-const password = process.env.JWT_SECRET
+const secret = process.env.JWT_SECRET
4
const algorithm = 'aes-192-cbc'
5
// Key length is dependent on the algorithm. In this case for aes192, it is
6
// 24 bytes (192 bits).
7
-const key = crypto.scryptSync(password, 'salt', 24)
+const key = crypto.scryptSync(secret, 'salt', 24)
8
const iv = Buffer.alloc(16, 0) // Initialization crypto vector
9
10
module.exports = {
0 commit comments