Enable true multi-tenant authentication for your B2B SaaS
You're building a B2B SaaS platform. Your customers (Client A, Client B) each have their own end-users who need to log in.
The problem: Supabase Auth is single-tenant by default. If john@example.com signs up on Client A, they can't sign up with the same email on Client B.
This demo shows the solution: Complete tenant isolation where the same email can have independent accounts across different tenants (your clients).
Example: Customer John logs into Client A's portal with john@example.com. The same John can also log into Client B's portal with john@example.com using a completely different password. These accounts are fully isolated — Client A never sees Client B's data.
In this demo, you're a customer named John who needs accounts on two different SaaS clients. Sign up with the same email address on both tenants to see complete isolation in action:
Sign up to Client A's customer portal
Sign up to Client B's portal with the same email (different password)
💡 Test it: Use john@example.com on both clients with different passwords. You'll have two completely isolated accounts — logging into Client A has nothing to do with Client B!
user@example.com on Tenant A, the backend generates a unique internal email like abc123...@customers.internalThis is a complete, production-ready starter template. Clone it, configure your Supabase project, and deploy your own multi-tenant auth system.
View on GitHub