Paid Feature
This is a paid feature.
For self hosted users, Sign up to get a license key and follow the instructions sent to you by email. Creation of tenants is free on the dev license key.
This feature is already enabled for managed service users. Creation of additional tenant is free on the provided development environment.
Setting up login for tenants
Once you have created tenants for your app with specific login methods enabled for them (third party, email password, passwordless), you have to pick which auth recipe to use in your app.
note
By default, when the core first starts, or when you create a new app in the core, SuperTokens creates a tenant (with tenantId as "public"
), and enables all the login methods for them.
The auth recipe you choose from our frontend & backend SDKs depend on which login methods you have enabled across all tenants in your app. Here are a few examples:
- If you have enabled email password login for all tenants, you can use the emailpassword recipe.
- If you have enabled third party login for all tenants, you can use the thirdparty recipe.
- If you have enabled passwordless login for all tenants, you can use the passwordless recipe.
- SuperTokens will automatically pick the right recipe for each tenant.
Once you have selected the right recipe for your application, you should follow the setup guides for them:
For using our pre built UI (website only), see the "Quick setup with pre built UI section", else for custom UI or mobile apps, see the "Using your own UI section". You should follow all the parts of one of these sections, and under these sections you will further find a page on Multi tenancy which will help you setup a login experience in your app using our SDKs.