Recipes
React SPA — B2B SaaS (multi-tenant)
← All recipes · First time? Set up your app (60 seconds — keys + redirect URI)
A React SPA paired with a multi-tenant Authaz application. Builds on the single-tenant React recipe — read that first; this page only shows the deltas.
1. What you'll build#
A B2B SaaS React SPA where the signed-in user's tenantId comes from useUser() and gates every API call to the backend.
2. Application setup#
Pair this with the multi-tenant Hono recipe on the backend (or any backend with multi-tenant Authaz wiring). The frontend doesn't need any application changes — multi-tenant context is set on the backend.
3. Install#
Identical to the single-tenant React recipe.