simple-session-store
v0.1.1
Published
A simple in-memory session store for humble-session.
Downloads
7
Readme
simple-session-store
A simple in-memory session store for humble-session.
Installation
npm i --save simple-session-store
Usage
Register the plugin:
var Hapi = require('hapi');
var simpleSessionStore = require('simple-session-store');
var humbleSession = require('humble-session');
var server = new Hapi.Server();
server.register({
register: simpleSessionStore
}, {
register: humbleSession,
options: {
password: 'secret',
sessionStoreName: 'simple-session-store'
}
}, function(err) {
/* ... */
});
License
MIT