Allow the flexibility to pass the express-session directly as a parameter to the adapter constructor.
Today, then way connect-dynamodb seems to allow initialization is like this:
var session = require('express-session');
var DynamoDBStore = require('connect-dynamodb')({session: session});
Where as frameworks such as sails, initialize the store like this. Consequently, connect-dynamodb is not directly compatible with sails, which is gaining popularity quickly.
The issue is to request support initialisation by passing the express-session directly as a param. Like this:
var DynamoDBStore = require('connect-dynamodb')(require('express-session'));
This is today also supported by connect-mongo and will bring us feature-parity.
Allow the flexibility to pass the express-session directly as a parameter to the adapter constructor.
Today, then way connect-dynamodb seems to allow initialization is like this:
Where as frameworks such as sails, initialize the store like this. Consequently, connect-dynamodb is not directly compatible with sails, which is gaining popularity quickly.
The issue is to request support initialisation by passing the express-session directly as a param. Like this:
This is today also supported by connect-mongo and will bring us feature-parity.