Tenant routing
Resolving the tenant is not authorization — after you find the tenant, you must still verify the current user is a member of it.
What this skill helps you build
Map subdomains, URL paths, and custom domains to a tenant, resolve it early in the request, and verify the current user belongs to it.
The production takeaway
Resolving the tenant is not authorization — after you find the tenant, you must still verify the current user is a member of it.
Inside this skill
The full skill expands these implementation areas with decisions, edge cases, prompts, tests, and framework-specific code.
Unlock the full implementation
Paid access includes the complete skill body, implementation prompt, common mistakes, production checklist, and code examples where this skill includes them.