bradtraversy / storybooks

Node.js app with Google OAuth
MIT License
569 stars 891 forks source link

MongoStore not working in app.js because of versions change #30

Open Akhilkumar272002 opened 3 years ago

Akhilkumar272002 commented 3 years ago

On session for passport store element is cannot be created in a direct way

real-zit commented 3 years ago

app.use( session({ secret: 'keyboard cat', resave: false, saveUninitialized: false, store: MongoStore.create({ mongoUrl: process.env.MONGO_URI, autoRemove: 'interval', autoRemoveInterval: 10, }), }) );