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 = ; // use middleware on routes to check authentication // (success route is optional) app ;