Overview
The Kotlin SDK allows you to customize the sub-organization creation process in your Android application. This is useful if you want to create a more tailored experience for your users, including automatically creating wallets, having multiple authentication methods, default usernames, and more. These can be individually configured for each authentication method.Customization
You can customize thecreateSuborgParams object inside the authConfig object in the TurnkeyContext.init configuration. This object allows you to set various parameters for the sub-organization creation process.
Each authentication method can have its own set of parameters. For example, you can set a different default userName for emailOtpAuth and passkeyAuth methods, or create different wallets for each authentication method.
CreateSubOrgParams
*“Required” depends on flow:
- Email OTP → userEmail + verificationToken
- SMS OTP → userPhoneNumber + verificationToken
- Passkey → authenticators (or you’ll register after)
- OAuth → oauthProviders