0.0.3 • Published 10 years ago
session-passport-info v0.0.3
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.xand5.0 - Support Node.js
0.10,0.12,4.x,5.xand 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-outsessionStoresessionIDsession
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