tenant_generate_middleware
Generate tenant resolution middleware that extracts the tenant from subdomain, header, JWT, path, or query and propagates tenant context in Express, Fastify, or NestJS.
Instructions
Generate tenant resolution middleware with context propagation
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | API key for authentication | |
| framework | No | Server framework | express |
| resolution | No | How to identify the tenant from requests | subdomain |
| include_caching | No | Whether to cache tenant lookups |