passport / discuss

A forum for discussing topics related to the usage of Passport.js.
1 stars 0 forks source link

Where does passport look to serialize/ deserialize the user / what does it need. #42

Closed Twiggeh closed 3 years ago

Twiggeh commented 4 years ago

I am sending a req with a session cookie & session id (req.session.cookie & req.sessionID), but I can't exchange the session id for user information. I've added the passport authenticate middleware on the route that should retrieve the user. Logging in works, the user gets saved to the database and a session is created in the session store, but I can't seem to get the user information.