Skip to content

Commit b9b3661

Browse files
author
Raymond Dean
committed
just a typo: mongodb example won't work because express-session is established as expressSession, not express.Session
1 parent f037b46 commit b9b3661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ app.use(cookieParser());
156156
// set up session middleware
157157
if (config.useMongoDBSessionStore) {
158158
mongoose.connect(config.databaseUri);
159-
app.use(express.session({
159+
app.use(expressSession({
160160
secret: 'secret',
161161
cookie: {maxAge: config.mongoDBSessionMaxAge * 1000},
162162
store: new MongoStore({

0 commit comments

Comments
 (0)