const session = require('express-session'); const SequelizeStore = require('connect-session-sequelize')(session.Store); const sess = { secret: 'Super secret secret', cookie: {}, resave: false, saveUninitialized: true, store: new SequelizeStore({ db: sequelize }) }; app.use(session(sess));
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter