Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/logout.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var STATUS = constants.STATUS;

// Analyze if we should merge session handler and store
module.exports.logout = function (options) {
options.sessionParticipants = options.sessionParticipants || new SessionParticipants();
options.sessionParticipants = new SessionParticipants(options.sessionParticipants) || new SessionParticipants();
options.clearIdPSession = options.clearIdPSession || function (cb){ return cb(); };
options.store = options.store || new SessionStore({ key: '_logoutState'});

Expand Down Expand Up @@ -378,4 +378,4 @@ module.exports.sendLogoutError = function(options){

return prepareAndSendToken(req, res, 'LOGOUT_RESPONSE', logoutResponse, options, next);
};
};
};