Skip to main content

Module tenant

Module tenant 

Source
Expand description

Row-level multi-tenancy: task-local tenant ID + Tower middleware.

Functions§

current_tenant_id
Returns the current request’s tenant ID from the task-local scope, if any. Always returns None when the tenant feature is disabled.