Note: The setup guides below explain how we configured the boilerplate. You donβt need to perform these steps yourself.
Features
- π Multiple Authentication Methods
- Email & Password
- Social Providers (Google)
- Email Verification
- Password Reset Flow
- π³ Payment Integration (Stripe & Polar.sh)
- π‘οΈ Protected Routes
- π Session Management
Quick Start
- Set up environment variables: in the .env file in
apps/server
apps/web
- Install dependencies:
Authentication Methods
Email & Password
The boilerplate supports traditional email and password authentication with:- Email verification
- Password reset flow
- Secure password hashing
- Rate limiting
Social Providers
Currently supported social providers:- Google OAuth
- More providers coming soon
Protected Routes
The boilerplate includes middleware for protecting routes:Session Management
Sessions are managed securely with:- Secure cookie storage
- Automatic session refresh
- Cross-subdomain support
Integration with Payments
Authentication is integrated with payment providers:- Polar.sh (primary)
- Stripe (fallback)
- Subscription management
- Customer portal
Security Best Practices
-
Password Security
- Strong password hashing
- Rate limiting
- Password complexity requirements
-
Session Security
- Secure session storage
- Session timeout
- CSRF protection
- Secure cookies
-
OAuth Security
- Token validation
- State parameter
- Secure client secrets