aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-06-02 23:49:04 +0200
committerMateja <mail@matejamaric.com>2021-06-02 23:49:04 +0200
commit76c9454101434854876e143d1ef6a8877c724c97 (patch)
tree648aae3a40200f5fc7b413c2d707cb8b6f764b8e
parent3fdfd6390c6c88135cc8d03dad1da729371d9c1d (diff)
downloadnode-playground-76c9454101434854876e143d1ef6a8877c724c97.tar.gz
node-playground-76c9454101434854876e143d1ef6a8877c724c97.zip
Simpler MongoSessionStore.HEADmain
-rw-r--r--index.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/index.js b/index.js
index b772ad2..cfd6592 100644
--- a/index.js
+++ b/index.js
@@ -25,9 +25,7 @@ app.use(session({
secret: masterKey,
resave: false,
saveUninitialized: true,
- store: MongoSessionStore.create({
- mongoUrl: mongoUrl
- }),
+ store: MongoSessionStore.create({ mongoUrl }),
cookie: {
maxAge: 1000 * 60 * 60 * 24 // 1 day
}