express middleware to logout from passport
JavaScript
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

README.md

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)

Install

npm install express-passport-logout

Usage

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.

Author

Auth0

License

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