Trouble logging out using passport js #982
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
Uh oh!
There was an error while loading. Please reload this page.
-
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:
Would appreciate any help with this. Thanks
Beta Was this translation helpful? Give feedback.
All reactions