Return a branded tenant scope from ctx.tenant or throw.
ctx.tenant
Throws TenantRequiredError by default through requireTenant. Pass options.error to throw an app-owned error instead.
TenantRequiredError
requireTenant
options.error
Optional
Return a branded tenant scope from
ctx.tenantor throw.Throws
TenantRequiredErrorby default throughrequireTenant. Passoptions.errorto throw an app-owned error instead.