Saturday 23 June 2018

How to update req.user

Hi, I am using passport for my authentication and everything works fine, except when the user changes his username. I update the user's data in the DB however when I call req.user it still shows the old username. Is there any way to update req.user without logging the user out? Thanks in advance :)

Submitted June 23, 2018 at 09:50AM by everek123

No comments:

Post a Comment