express-passport-logout

express middleware to logout from passport

npm install express-passport-logout
7 downloads in the last week
50 downloads in the last month

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());

License

MIT - Auth0

npm loves you