node.js - How to read PassportJS session data? -


i think don't quite understand passport.session meant for. says nothing on configuration page.

what need save person's data once he's been authenticated, use name in required file, put socket.io code. i've read on google , here, , couldn't find need. don't know how read connect.sess has data once user logged-in.

so line do?

app.use(passport.session());

note - don't use db. user logs-in id , name, that's pretty basic.

i'm not sure if case, finished writing blog uses node , passport, , whenever user logged in credentials stored in req.user (assuming req request json called). might want check there.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -