Skip to content

outbounder/organic-express-mongo-sessions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published