Answer the question
In order to leave comments, you need to log in
Socket.io 1.x + Express 4.x + Passport.JS login and logout?
Authorization on the site is implemented using passport.js
Authorization in socket requests is implemented using passport.socketio ,
When the user exits the site
app.post '/logout',(req, res,next)->
req.logout()
res.redirect '/'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question