Documentation / @zerotal/tenancy / TenantResolverResult
Interface: TenantResolverResult
Defined in: tenancy/src/types.ts:29
A resolver extracts a tenant identifier from the incoming request.
Properties
identifier
identifier:
string|number
Defined in: tenancy/src/types.ts:31
The raw identifier extracted (subdomain slug, header value, path segment, auth user, …).
by?
optionalby?:"id"|"slug"
Defined in: tenancy/src/types.ts:37
How to look the tenant up in the registry. "slug" (default) matches the URL-safe
slug; "id" matches the primary key — used by resolvers that read a foreign key such
as the authenticated user's tenantId.