Simple Express Authentication

Dead simple manual authentication for Express Apps - No Passport Required!

Requirements

Dependencies

Database Requirements

Setup

Source Repo
  1. Clone/Download the repository and import auth.js and optionally login.html and register.html to your project

  2. Import the authenticate function and the authenticationRoutes function, and run authenticationroutes and give it your express app:

    let authenticationRoutes = require("./auth").authenticationRoutes
     let authenticate = require("./auth").authenticate
        
     authenticationRoutes(app)
        
  3. Tweak auth.js as desired, and add in the Database Logic

Features

Included

Not Yet Implemented

Ganesh H