const session = require("express-session") const config = require("../config") var RedisStore = require('connect-redis')(session); module.exports = session({ secret: config.session.secret, store: new RedisStore(config.redis), cookie: { secure: config.session.secure, }, resave: false, saveUninitialized: true, })