0.1.2 • Published 8 years ago

organic-express-mongo-sessions v0.1.2

Weekly downloads
10
License
MIT
Repository
github
Last release
8 years ago

organic-express-mongo-sessions v0.1.2

Organelle mounting connect-mongo middleware to express app chemical.

dna

{
  "source": "node_modules/organic-express-mongo-sessions",
  "reactOn": "ExpressServer",
  "emitReady": "ExpressSessions",
  "cookie_secret": "secret",
  "db": "databaseName",
  "closeOn": "kill",
  "express-session": {} // optional, refer to https://github.com/expressjs/session options
  "connect-mongo": {} // optional, refer to https://github.com/kcbanner/connect-mongo options
}

reactOn property

Should be either ExpressServer chemical with expected structure or array of chemicals where the first one is mapped as ExpressServer chemical.

emitReady property

Indicates the type of the chemical to be emitted once middleware is mounted, chemical has the following structure:

{
  "type": "emitReadyValue",
  "data": MongoStore instance,
  "session": ExpressSession instance
}
0.1.2

8 years ago

0.1.0

9 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago