Trouble logging out using passport js #985
Unanswered
smtabatabaie
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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