Skip to main content

Overview

You can customize how new sub-organizations (and users) are created during signup.
There are three levels of customization:
  1. Global defaults in TurnkeyConfig (applies to all auth methods)
  2. Per-auth-method defaults in TurnkeyConfig
  3. Per-call overrides passed to signup helpers (OTP, Passkey, OAuth)
All customizations use the CreateSubOrgParams type.

Configure defaults for all auth methods

Set defaults in TurnkeyConfig.auth.createSuborgParams, applying the same parameters across methods.
DemoWalletApp.swift

Customize per authentication method

Provide different parameters for each auth method in TurnkeyConfig.auth.createSuborgParams.
DemoWalletApp.swift

Customize at the function call

You can override defaults at runtime by passing createSubOrgParams into signup helpers.
This takes precedence over config-level defaults.

Email or SMS OTP

Use completeOtp(...) or signUpWithOtp(...) with createSubOrgParams.
OtpFlow.swift

Passkeys

Use signUpWithPasskey(...) with createSubOrgParams.
PasskeySignup.swift

Next steps