Express middleware to logout a user from passport and redirect somewhere.
- redirect to
req.query.returnToif exists, if not
npm install express-passport-logout
var logout = require('express-passport-logout'); app.get('/logout', logout());
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.