hovering over the session might give you a clue what is wrong with it.
Setting a new param on a request object doesn’t make any sense. It’s not gonna go back to the client . Each request generates a new request object. You need to set this token as a cookie or JWT header to be able to make it persistent
Well, express uses req to store some middleware data. So it is meaningful in some places. But not at the end of the middlewares.
I want to save the logged-in user information in the session. What about then? The program gives an error that the session is undefined
Обсуждают сегодня