diff --git a/session/session.js b/session/session.js index fee7608c..a1c53a17 100644 --- a/session/session.js +++ b/session/session.js @@ -98,6 +98,12 @@ defineMethod(Session.prototype, 'reload', function reload(fn) { return this; }); +defineMethod(Session.prototype, 'getStore', function getStore(fn) { + var req = this.req + var store = this.req.sessionStore + return fn(store) +}); + /** * Destroy `this` session. *