You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Create a database on MongoDB and change connection URL in app.js
// For example
mongoose.connect('mongodb://localhost/smartedu-db', {
useNewUrlParser: true,
useUnifiedTopology: true,
});
Change session middleware's store
// Use your database connection URL for session middleware
// For example
app.use(
session({
secret: "my_session_middleware",
resave: false,
saveUninitialized: true,
store: MongoStore.create({ mongoUrl: "mongodb://localhost/smartedu-db" }),
})
);