session-passport-info

v0.0.3
Express middleware session diagnostic that console.logs if user logged in and the current session info
express middleware connect diagnostic log passport express-session session

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

npm i session-passport-info

Metadata

  • MIT
  • Whatever
  • Matt McFarland
  • released 1/9/2016

Downloads

Maintainers