Skip to content

Commit

Permalink
Existence check (#1765)
Browse files Browse the repository at this point in the history
* Not sure why all of the sudden after 7ish years this is showing up.

Auto-merge
  • Loading branch information
Martii authored Sep 22, 2020
1 parent 10d8c7a commit 90f0b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ app.use(session({
store: sessionStore
}));
app.use(function (aReq, aRes, aNext) {
if (aReq.session[passport._key]) {
if (aReq.session && aReq.session[passport._key]) {
// load data from existing session
aReq._passport.session = aReq.session[passport._key];
}
Expand Down

0 comments on commit 90f0b70

Please sign in to comment.