An ETCD v3 store adapter for express-session using etcd3 client.
Install this package with all necessary peer dependencies:
npm install express-session-etcd3 express-session etcd3
Pass the necessary configuration to access your etcd v3 base into the Etcd3Store
constructor as options
:
var session = require('express-session');
var Etcd3Store = require('express-session-etcd3');
app.use(session({
store: new Etcd3Store(options),
secret: 'keyboard cat',
resave: false
}));
You can find all the available options at the documentation.
Our TypeDoc docs are available here.
Our test cases are also quite readable.
You can find all the steps at the Contributing Guide.
This project was easily bootstrapped with TypeScript library starter, thanks for sharing it!
Max TTL time to leasing on ETCD3 Client in seconds.
One day in seconds.
Generated using TypeDoc
Default configuration values for the etcd v3 options