session-passport-info
v0.0.3
Published
Express middleware session diagnostic that console.logs if user logged in and the current session info
Downloads
6
Maintainers
Readme
A middleware that console.logs if user is logged-in
or logged-out
and session info.
Express session diagnostic for Connect / Express with Passport.js
Compatibility
- Support Express
4.x
and5.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