setActiveTenant method

void setActiveTenant(
  1. String? tenantId
)

Sets the active tenant, or null on sign-out. Invalidates any pending pass.

Only mutations whose OutboxMutation.tenantId matches the active tenant will be dispatched during flush.

Implementation

void setActiveTenant(String? tenantId) {
  _generation++;
  _activeTenantId = tenantId;
}