New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

auth-checker

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auth-checker

A Middleware that checks if user is authenticated.

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

auth

FAQs

Package last updated on 01 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts