finds.dev

bradtraversy/node_passport_login

Node.js login, registration and access control using Express and Passport

View on GitHub

★ 1,758EJSupdated May 2026

// the take

A minimal Express/Passport authentication starter with registration, login, and a protected route. It's a teaching repo, not a production template — Brad Traversy made it to accompany a tutorial, and that's exactly what it is.

Updated to Express 5 and current package versions as of 2025, which is more than most repos in this category bother with. The codebase is small enough to read in 20 minutes — good for someone who wants to understand the Passport local strategy without wading through unrelated complexity. bcryptjs for password hashing is the right call. Flash messages for validation feedback are included, which beginners consistently forget to implement themselves.

MongoDB credentials are hardcoded in config/keys.js with a note not to commit them — that's a trap for learners who will commit them anyway. No .env / dotenv setup means the first lesson a new developer gets is the wrong one. Sessions are presumably stored in-memory (no session store configured), so every restart logs everyone out and it won't scale past one process. No CSRF protection, no rate limiting on the login route — fine for a demo, painful if someone deploys this and calls it done.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
1,758
Forks
1,290
Language
EJS
Last commit
23 May 2026

// nearby

If node_passport_login isn't quite it.

All repos →