Skip to content

Jexulie/auth-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auth-checker

Passport.js Authentication Checking Middleware.

Checks if user is authenticated and redirects to desired routes.

Installation

$ npm install auth-checker

Usage

    var authchecker = require('auth-checker');

    // use middleware on routes to check authentication
    // (success route is optional)
    app.get('/myprecious', authchecker('/routeToHell', '/routeToMyPrecious'), (req, res) => {
        // do your stuff...
    }) ;

License

MIT

About

Passport.js Authentication Checking Middleware.

Resources

License

Stars

Watchers

Forks

Packages

No packages published