Passport Strategies Overview Guide
What are Passport strategies
Passport strategies are plugins that define how authentication is performed. Each strategy corresponds to a specific method such as OAuth, local login, or API token authentication. Learn how OAuth strategies fit in OAuth Passport.
Types of Passport strategies
Common strategies include local strategy for username-password login, OAuth strategies for third-party login, and bearer strategy for API authentication.
Choosing the right strategy
The choice depends on your application needs. Use OAuth strategies for social login, local strategy for traditional login, and bearer strategy for APIs.
Why strategies matter
Strategies make Passport flexible and extensible. They allow developers to support multiple authentication methods without rewriting core logic.