Skip to content
Back to Continuum
03 / 06

Phase 3: Auth & Multi-tenancy

Architectural prompt fed to Claude Code

phase-3-auth.md
# Phase 3: Auth & Multi-tenancy

## Auth.js v5, Subdomain Resolution, and Tenant-Scoped Queries

> This prompt was fed to Claude Code to implement authentication and multi-tenancy.

---

*Replace this placeholder with the actual Phase 3 prompt content.*

*This file should contain the architectural prompt that guided Claude Code through:*
- *Auth.js v5 configuration with Google SSO + credentials provider*
- *JWT session strategy with tenant-scoped roles*
- *Subdomain-based tenant resolution middleware*
- *Row-level tenant isolation on all database queries*