feat: generate secure secret key and prevent default

This commit is contained in:
Lin, Hung-Shin committed 2023-11-01 14:19:18 +08:00
1 parent b9a79eb435
commit f18ec35a9f
11 files changed
+45 -5

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ import config from '../config.js'
const jwtOptions = {
jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(),
secretOrKey: config.jwtSecret,
secretOrKey: config.secret,
}
function verifyJwt(jwtPayload, done) {