![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
connect-dynamodb
Advanced tools
connect-dynamodb is a DynamoDB session store backed by the aws-sdk
$ npm install connect-dynamodb
client
An existing AWS DynamoDB object you normally get from new AWS.DynamoDB()
AWSConfigPath
Path to JSON document containing your AWS credentials (defaults to loading credentials from environment variables) and any additional AWS configuration optionsAWSConfigJSON
JSON object containing your AWS configuration optionsAWSRegion
Optional AWS region (defaults to 'us-east-1', ignored if using AWSConfigPath
or AWSConfigJSON
)table
Optional DynamoDB server session table name (defaults to "sessions")hashKey
Optional hash key (defaults to "id")prefix
Optional key prefix (defaults to "sess")reapInterval
Optional - how often expired sessions should be cleaned up (defaults to 600000)var options = {
// Name of the table you would like to use for sessions.
// Defaults to 'sessions'
table: 'myapp-sessions',
// Optional path to AWS credentials (loads credentials from environment variables by default)
// AWSConfigPath: './path/to/credentials.json',
// Optional JSON object of AWS configuration options
// AWSConfigJSON: {
// region: 'us-east-1',
// correctClockSkew: true
// }
// Optional. How often expired sessions should be cleaned up.
// Defaults to 600000 (10 minutes).
reapInterval: 600000
};
var connect = require('connect'),
DynamoDBStore = require('connect-dynamodb')(connect);
connect()
.use(connect.cookieParser())
.use(connect.session({ store: new DynamoDBStore(options), secret: 'keyboard cat'}))
Or with express 3.x.x
DynamoDBStore = require('connect-dynamodb')(express);
var app = express(
express.cookieParser(),
express.session({ store: new DynamoDBStore(options), secret: 'keyboard cat'})
);
Or with express 4.x.x
var app = express();
var session = require('express-session');
DynamoDBStore = require('connect-dynamodb')({session: session});
app.use(session({ store: new DynamoDBStore(options), secret: 'keyboard cat', resave: true, saveUninitialized: true}));
Some people that have added features and fixed bugs in connect-dynamodb
other than me.
Thanks!
connect-dynamodb is licensed under the MIT license.
I made this in my spare time, so if you find it useful you can donate at my BTC address: 13Bzg4reJJt43wU1QsPSCzyFZMLhJbRELA
. Thank you very much!
1.0.8 / 2016-07-18
FAQs
DynamoDB session store for Connect
The npm package connect-dynamodb receives a total of 43,984 weekly downloads. As such, connect-dynamodb popularity was classified as popular.
We found that connect-dynamodb demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.