1
0
Fork 0

Session storages need both forClient and fromClient

This commit is contained in:
Alan Plum 2016-04-29 15:02:40 +02:00
parent 80dbea94a4
commit fb2a9818e6
No known key found for this signature in database
GPG Key ID: 8ED72A9A323B6EFD
1 changed files with 2 additions and 2 deletions

View File

@ -52,8 +52,8 @@ module.exports = function sessionMiddleware(cfg) {
`); `);
} }
assert( assert(
storage.forClient || storage.fromClient, storage.forClient && storage.fromClient,
'Session storage must have a forClient and/or fromClient method' 'Session storage must have a forClient and fromClient method'
); );
if (cfg.transports) { if (cfg.transports) {
console.warn(il` console.warn(il`