passport-local
Username and password authentication strategy for Passport and Node.js
...It plugs directly into the Passport middleware ecosystem and lets developers define precisely how users are looked up and verified against stored credentials, which can be adapted to any database or user store. 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.