passport-local-mongoose

JSON →
library 5.0.10 ·javascript
verified Jun 5, 2026

A Mongoose plugin that integrates with Passport and passport-local to provide username and password authentication for Node.js applications. Version 5.0.10 (stable) is actively maintained with regular releases. Key differentiators: adds hash/salt fields automatically, provides static authenticate/serialize/deserialize methods, and supports customizable username fields and password validators. Unlike manual passport-local setup, it manages password hashing and session serialization automatically.