New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

connect-dynamodb

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-dynamodb

DynamoDB session store for Connect

  • 0.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
32K
decreased by-36.96%
Maintainers
1
Weekly downloads
 
Created
Source

Connect DynamoDB

connect-dynamodb is a DynamoDB session store backed by dynode

Installation

  $ npm install connect-dynamodb

Options

  • client An existing dynode client object you normally get from new (dynode.Client)({accessKeyId: "AWSAccessKey", secretAccessKey: "SecretAccessKey"});
  • table DynamoDB server session table name
  • accessKeyId AWS accessKeyId
  • secretAccessKey AWS secretAccessKey
  • prefix Key prefix defaulting to "sess"
  • reapInterval How often expired sessions should be cleaned up

Usage

var connect = require('connect')
 	  , DynamoDBStore = require('connect-dynamodb')(connect);
 	  
var store = new DynamoDBStore({
  // Name of the table you would like to use for sessions.
  table: 'myapp-sessions',

  // AWSAccessKey
  accessKeyId: 'AWSAccessKey',
  
  // AWS secretAccessKey
  secretAccessKey: 'SecretAccessKey',
  
  // Optional. How often expired sessions should be cleaned up.
  // Defaults to 600000 (10 minutes).
  reapInterval: 600000
});

var server = connect.createServer();
server.use(connect.session({secret: 'YourSecretKey', store: store });

Or with express

var store = new DynamoDBStore({
  // Name of the table you would like to use for sessions.
  table: 'myapp-sessions',

  // AWSAccessKey
  accessKeyId: 'AWSAccessKey',
  
  // AWS secretAccessKey
  secretAccessKey: 'SecretAccessKey'
});

var app = express.createServer(
	  express.cookieParser()
	, express.session({ secret: 'YourSecretKey', store: store)
  );

FAQs

Package last updated on 13 Jun 2012

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc