passport-local
Username and password authentication strategy for Passport and Node.js
...Instead of managing authentication logic manually in every route, passport-local centralizes the process through a strategy interface where you provide a function to find and validate the user. Once integrated with an Express-based application, it handles reading credentials from requests, invoking your verification logic, and managing success or failure flows, all while cooperating with session middleware to serialize authenticated users.