diff options
author | Sam Wilkins <abdullah_ahmed@brown.edu> | 2019-03-17 20:57:33 -0400 |
---|---|---|
committer | Sam Wilkins <abdullah_ahmed@brown.edu> | 2019-03-17 20:57:33 -0400 |
commit | af5a3bca4caf2aadb5ce832c025e1c14b78a5728 (patch) | |
tree | 2278050e66edde477494e1aa6d012fa9a80a1668 /src | |
parent | a2bec39bc152f7493e4171b6446040fa381e6463 (diff) | |
parent | 5b00f4059dc48e14c15b91e25e02580ad0a441c3 (diff) |
Merge branch 'authentication' of https://github.com/browngraphicslab/Dash-Web into authentication
Diffstat (limited to 'src')
-rw-r--r-- | src/server/index.ts | 4 |
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, |