Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fortune-session

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fortune-session

Fortune.js-based session store for Express.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

fortune-session

This module is alpha quality.

Fortune.js-based session store for Express.

npm install --save fortune-session
const fortune = require('fortune');
const store = fortune({
    session : {
        sid  : String,
        data : Object
    }
} /* Here you can pass your preferred adapter. */ );

const session        = require('express-session');
const fortuneSession = require('fortune-session');

app.use(session({
    store : fortuneSession(session, store)
}));

fortuneSession(session, store, [collection])

  • session — express-session module.
  • store — Fortune.js store.
  • collection — optional, refers to collection/table with compatible schema, defaults to 'session'.

Schema

Specified collection/table must have the following schema:

  • sid — String, session id.
  • data — Object, session data.

TODO

  • Write tests.

License

MIT

FAQs

Package last updated on 01 Nov 2016

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