Progressive rollout
Feature Toggles for Authentication
Control which security experiences—magic links, email verification, 2FA—are available globally, for specific tenants, and for individual organizations. This flow keeps compliance in the hands of your super admin while letting customers self-serve when permitted.
Hierarchy
Super admin login route
Create a dedicated route for platform operators. It should skip tenant resolution and require the SUPER_ADMIN
role. A quick example using the built-in AuthForm
:
Persist global defaults
Use the configure()
helper or the AdminSettings
component to store defaults. These values cascade to tenants on the next request.
Tenant overrides
Tenant administrators use the SecuritySettings
component to opt into the experiences permitted by the platform. Persist those decisions and hydrate AuthCore with them during session evaluation.
The locks
prop prevents tenants from enabling features the super admin disabled.
Profile preferences
Feature toggles do not need to be binary. Combine tenant defaults with per-user preferences so power users can choose their preferred auth journey. Reuse your profile tabs or the ProfileSecurityCard
helper to keep messaging consistent across locales.
Persist the preference next to other profile metadata so adapters can honour it during session creation.