Skip to main content
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

  1. Set up environment variables: in the .env file in apps/server
setup in the .env file in apps/web
  1. 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
Learn more about Email & Password authentication

Social Providers

Currently supported social providers:
  • Google OAuth
  • More providers coming soon
Learn more about Social authentication

Protected Routes

The boilerplate includes middleware for protecting routes:
Learn more about route protection

Session Management

Sessions are managed securely with:
  • Secure cookie storage
  • Automatic session refresh
  • Cross-subdomain support
Learn more about session management

Integration with Payments

Authentication is integrated with payment providers:
  • Polar.sh (primary)
  • Stripe (fallback)
  • Subscription management
  • Customer portal
Learn more about payment integration

Security Best Practices

  1. Password Security
    • Strong password hashing
    • Rate limiting
    • Password complexity requirements
  2. Session Security
    • Secure session storage
    • Session timeout
    • CSRF protection
    • Secure cookies
  3. OAuth Security
    • Token validation
    • State parameter
    • Secure client secrets

Next Steps