You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone, I have a sample node app in which I'm trying to sign-up log-in and log-out users using passport js. I can successfully login and signup users, but when I try to logout users in my terminal I only get the console.log of my deserialize function and it doesn't affect cookies in my browser and also won't log out users since I can retrieve req.user after calling logout function. Here's my passport setup, serialize and deserialize function and also my logout function:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone, I have a sample node app in which I'm trying to sign-up log-in and log-out users using passport js. I can successfully login and signup users, but when I try to logout users in my terminal I only get the console.log of my deserialize function and it doesn't affect cookies in my browser and also won't log out users since I can retrieve req.user after calling logout function. Here's my passport setup, serialize and deserialize function and also my logout function:
Been stuck with this for weeeks, would really appreciate any help. Thanks
Beta Was this translation helpful? Give feedback.
All reactions