7.0.0 • Published 10 months ago

@bedrock/session-mongodb v7.0.0

Weekly downloads
-
License
-
Repository
github
Last release
10 months ago

bedrock-session-mongodb

A bedrock module that enables express session storage via MongoDB.

Requirements

  • npm v9+

Quick Examples

npm install @bedrock/session-mongodb

Simply require the bedrock-session-mongodb module along with the bedrock-express module and then any express session information will be persisted via MongoDB.

import * as bedrock from '@bedrock/core';

// modules
import '@bedrock/server';
import '@bedrock/express';
import '@bedrock/session-mongodb';

bedrock.events.on('bedrock-express.configure.routes', function(app) {
  app.get('/', function(req, res) {
    res.send('Hello World!');
  });
});

bedrock.start();

Configuration

For documentation on configuration, see config.js.

7.0.0

10 months ago

6.1.0

10 months ago

6.0.0

4 years ago

5.0.1

4 years ago

5.0.0

4 years ago