Added expires option for mongo_configs

This commit is contained in:
Kasper Rynning-Tønnesen
2018-02-14 14:00:15 +01:00
parent c3b8b53c6c
commit a4fd6f380e
2 changed files with 2 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ app.use(session({
host: mongo_db_cred.host,
port: 27017,
collection: 'sessions',
expire: 86400
expire: mongo_db_cred.expire
})
})); // session secret
app.use(passport.initialize());

View File

@@ -4,6 +4,7 @@ var mongo_config = {
users: 'users',
host: 'localhost',
port: '27017',
expire: 86400,
};
module.exports = mongo_config;