import {
TurnkeyProvider,
TurnkeyProviderConfig,
} from "@turnkey/react-wallet-kit";
import "@turnkey/react-wallet-kit/styles.css";
function App() {
const turnkeyConfig: TurnkeyProviderConfig = {
//... your existing configuration
auth: {
createSuborgParams: {
emailOtpAuth: {
userName: "An email user",
customWallet: {
walletName: "Email Wallet",
walletAccounts: [
// This will create one Ethereum wallet account for users that sign up with email OTP
{
curve: "CURVE_SECP256K1",
pathFormat: "PATH_FORMAT_BIP32",
path: `m/44'/60'/0'/0/0`,
addressFormat: "ADDRESS_FORMAT_ETHEREUM",
},
],
},
},
passkeyAuth: {
userName: "A passkey user",
customWallet: {
walletName: "Passkey Wallet",
walletAccounts: [
// This will create one Solana wallet account for users that sign up with passkeys
{
curve: "CURVE_ED25519",
pathFormat: "PATH_FORMAT_BIP32",
path: `m/44'/501'/0'/0'`,
addressFormat: "ADDRESS_FORMAT_SOLANA",
},
],
},
},
},
},
};
return <TurnkeyProvider config={turnkeyConfig}>{children}</TurnkeyProvider>;
}