Authentication Documentation

Overview

This directory contains all authentication-related documentation for the do.dev application. The project uses Clerk for modern authentication with role-based access control.

🎯 Quick Start for do.dev Authentication

New to Clerk Authentication?

🔐 Core Authentication System

Current Architecture

Implementation Guides

🚀 Setup & Configuration

Quick Start

  1. CLERK_ENV_VARIABLES.md - Environment variables reference
  2. AUTH_ENVIRONMENT_SETUP.md - Detailed environment setup
  3. EMAIL_SETUP.md - Email authentication setup
  4. GOOGLE_AUTH_SETUP.md - Google OAuth configuration

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

# Main Convex Application
NEXT_PUBLIC_CONVEX_URL=https://standing-bird-371.convex.cloud

Key Concepts

  • Clerk Authentication: Modern authentication with email OTP, Google OAuth, and GitHub OAuth
  • User Sync: Clerk users synchronized to Convex main deployment
  • Organization Support: Multi-tenant organization and team management
  • RBAC: Role-based access control with waitlist, user, admin, and super_admin roles

On this page