feat: generate secure secret key and prevent default

This commit is contained in:
Lin, Hung-Shin authored and Annie Huang committed 2023-11-12 21:23:12 +08:00
1 parent 55b61dbcab
commit f1a50067c5
11 files changed
+45 -5

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ import MongoStore from 'connect-mongo'
import config from '../config.js'
export default session({
secret: config.jwtSecret,
secret: config.secret,
resave: false,
saveUninitialized: false,
rolling: true,