aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/index.ts b/src/server/index.ts
index 7baf896b7..17aba99ee 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -54,9 +54,9 @@ mongoose.connection.on('connected', function () {
// SESSION MANAGEMENT AND AUTHENTICATION MIDDLEWARE
// ORDER OF IMPORTS MATTERS
-app.use(cookieParser(`${c.randomBytes(64)}`));
+app.use(cookieParser());
app.use(session({
- secret: `${c.randomBytes(64)}`,
+ secret: `our secret`,
resave: true,
cookie: { maxAge: 7 * 24 * 60 * 60 },
saveUninitialized: true,