update default session secret

This commit is contained in:
Nathaniel Tampus
2023-07-01 19:50:27 +08:00
parent 70637a384d
commit 0d9cfd8f61

View File

@@ -24,7 +24,7 @@ declare module "http" {
}
const sessionMiddleware = session({
store: new PGSession({ pool: db, createTableIfMissing: true }),
secret: process.env.SESSION_SECRET || "whatever this is",
secret: process.env.SESSION_SECRET || "make sure to change this!",
resave: false,
saveUninitialized: false,
name: "chessu",