0.0.3 • Published 8 years ago

session-passport-info v0.0.3

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

A middleware that console.logs if user is logged-in or logged-out and session info.

npm Travis Coverage Status

Express session diagnostic for Connect / Express with Passport.js

Compatibility

  • Support Express 4.x and 5.0
  • Support Node.js 0.10, 0.12, 4.x, 5.x and all io.js versions
  • Support for Passport

For use with express-session and passport

Express 4.x, 5.0 and Connect 3.x:

Once added, you will get information regarding the session like:

  • status: logged-in || logged-out
  • sessionStore
  • sessionID
  • session
const session = require('express-session');
const passportInfo = require('session-passport-info');

app.use(session());
app.use(passportInfo());

Note This is for Passport, for session diagnostic try session-info

License

The MIT License