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.
 
 
 
 

15 lines
352 B

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