zafer7929
01/04/2024, 9:35 AMrp_st
01/04/2024, 9:46 AMrp_st
01/04/2024, 9:48 AMpublic
tenant. Which will be configured to have email password login. You can implement this part by following the regular quick setup guide of the email password recipe docs. Nothing to do with multi tenancy here.
- Once a user logs in, you can add them to another tenant as shown here: https://supertokens.com/docs/multitenancy/users-and-tenants. So this way, a user is a part of the public
tenant along with whatever other tenant you add them to.
- Then you can also ask the user to switch tenants (custom UI) and when they select a tenant they want to switch to, you can call the createNewSession function with the selected tenant: https://supertokens.com/docs/session/common-customizations/sessions/new-sessionzafer7929
01/04/2024, 10:01 AMrp_st
01/04/2024, 10:14 AMrp_st
01/04/2024, 10:14 AMpublic
tenant.