Authentication Documentation

Overview

This directory contains all authentication-related documentation for the do.dev stack. The project uses Clerk's satellite domain architecture for centralized authentication across all applications.

🎯 Quick Start for Satellite Domains

New to Satellite Domains?

🔐 Core Authentication System

Current Architecture

Implementation Guides

🚀 Setup & Configuration

Quick Start

  1. SATELLITE_QUICK_START.md - 5-minute satellite setup
  2. CLERK_ENV_VARIABLES.md - Environment variables reference
  3. AUTH_ENVIRONMENT_SETUP.md - Detailed environment setup
  4. CLERK_SATELLITE_DOMAIN_SETUP.md - Domain configuration
  5. EMAIL_SETUP.md - Email authentication setup

OAuth Providers

Testing

🛠️ Troubleshooting & Maintenance

Common Issues

Maintenance

📋 Status

The authentication system migration to Clerk is complete. For historical migration documentation, see the archive.

Architecture

Development

Quick Reference

Environment Variables

# Clerk Configuration
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_xxx
CLERK_SECRET_KEY=sk_test_xxx
NEXT_PUBLIC_CLERK_IS_SATELLITE=true

# Auth Convex Project
NEXT_PUBLIC_CONVEX_DEPLOYMENT_AUTH=https://dependable-pika-747.convex.cloud

Key Concepts

  • Satellite Mode: Apps authenticate through central auth.do.dev
  • User Sync: Clerk users synchronized to Convex with usr_ prefixed IDs
  • Multi-App Support: Single user can access multiple apps with different roles
  • RBAC: Role-based access control per application

On this page