OAuth Component
The OAuth component in servercn provides a unified way to integrate third-party authentication into your backend.
Instead of installing providers individually, this component bundles strategies for:
- Google OAuth
- Facebook OAuth
- GitHub OAuth
All under a single, consistent architecture.
Installation Guide
npx servercn-cli add oauthWhat's Included
The OAuth component scaffolds support for:
- Google authentication
- Facebook authentication
- GitHub authentication
- Unified controller & service layer
- Strategy-based architecture
Environment Variables
Configure each provider in your .env file: