Tenant.SessionPlug (Tenant v2.0.0)
View SourceThis is a basic plug that loads the current tenant assign from a given value set on session.
To plug it on your router, you can use:
plug Tenant.SessionPlug,
session: :subdomain,
tenant_handler: &TenantHelper.tenant_handler/1
See Tenant.SessionPlugConfig
to check all the allowed config
flags.