passport
Installation
SKILL.md
Passport.js
Passport is authentication middleware for Node.js. It is designed to serve a unique purpose: authenticate requests. It delegates all other details (user handling, sessions) to the application.
When to Use
- Node.js/Express Apps: The de-facto standard for Express auth.
- Multiple Strategies: Supporting Local (Username/Password), Google, Facebook, and Twitter login all in one app.
- Legacy/Established Codebases: widely used in existing Mean/Mern stacks.
Quick Start
import passport from "passport";
import LocalStrategy from "passport-local";