diff options
author | Mateja <mail@matejamaric.com> | 2021-06-02 23:49:04 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-06-02 23:49:04 +0200 |
commit | 76c9454101434854876e143d1ef6a8877c724c97 (patch) | |
tree | 648aae3a40200f5fc7b413c2d707cb8b6f764b8e | |
parent | 3fdfd6390c6c88135cc8d03dad1da729371d9c1d (diff) | |
download | node-playground-76c9454101434854876e143d1ef6a8877c724c97.tar.gz node-playground-76c9454101434854876e143d1ef6a8877c724c97.zip |
-rw-r--r-- | index.js | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 } |