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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -