Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
express middleware to logout from passport
JavaScript
branch: master
Failed to load latest commit information.
.gitignore initial
README.md Update README.md
index.js remove check req.user because it's not necessary
package.json initial

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

License

MIT - Auth0

Something went wrong with that request. Please try again.