Похожие чаты

Hello friends. Why does this code not work exactly ??

4 ответов

14 просмотров

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

Noam Bergauz
Setting a new param on a request object doesn’t ma...

Well, express uses req to store some middleware data. So it is meaningful in some places. But not at the end of the middlewares.

Amir-Developer Автор вопроса
Noam Bergauz
Setting a new param on a request object doesn’t ma...

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

Похожие вопросы

Карта сайта