The frontend/UI server, written in JS using the MarkoJS library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 lines
329 B

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,
})