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
Post a Comment