Answer the question
In order to leave comments, you need to log in
PassportJS and Express-Session, how to add extra data to session?
How to correctly add additional objects to the session (req.session)?
I stupidly add req.session.x = 1 on the forehead, in principle everything was fine. But when the session is saved by passport, it writes only the cookie and passport, and everything else is cleared. What am I doing wrong?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question