express middleware to logout from passport
Latest commit 76b705c Jan 14, 2016 @jfromaniello jfromaniello Merge pull request #4 from aguerere/fix-issue3-add-license-fix-readme
License added and readme edited

Express middleware to logout a user from passport and redirect somewhere.

It will

  • req.logout()
  • delete req.session
  • redirect to req.query.returnTo if exists, if not res.send(bye)


npm install express-passport-logout


var logout = require('express-passport-logout');

app.get('/logout', logout());

Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.




This project is licensed under the MIT license. See the LICENSE file for more info.