connect-mongo @3 -> @4

Created Diff never expires
3 removals
10 lines
3 additions
10 lines
const MongoStore = require('connect-mongo')(session)
const MongoStore = require('connect-mongo')


app.use(session({
app.use(session({
secret: 'shhhhhhhhhhhhhhht',
secret: 'shhhhhhhhhhhhhhht',
resave: false,
resave: false,
saveUninitialized: true,
saveUninitialized: true,
store: new MongoStore({
store: MongoStore.create({
mongooseConnection: mongoose.connection,
mongoUrl: process.env.MONGODB_URI,
})
})
}))
}))