Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    express-passport-logoutpublic

    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

    Keywords

    none

    install

    npm i express-passport-logout

    Downloadsweekly downloads

    135

    version

    0.1.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar