Dead simple manual authentication for Express Apps - No Passport Required!
Clone/Download the repository and import auth.js
and optionally login.html
and
register.html
to your project
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)
Tweak auth.js
as desired, and add in the Database Logic