Sends verification code (OTP) to the specified email address, to be used with logInWithEmail to complete the connect with email flow.

Usage

import { sendEmailVerificationCode } from "@treasure-dev/tdk-core";

// const client = ...

await sendEmailVerificationCode({
  client,
  ecosystemId: "ecosystem.treasure-dev",
  ecosystemPartnerId: "...",
  email: "example@treasure.lol",
});

Props

client

TreasureConnectClient

ecosystemId

string | undefined

  • The ecosystem ID for the ecosystem wallets.
  • Defaults to "ecosystem.treasure".

ecosystemPartnerId

string

  • The ecosystem partner ID for the ecosystem wallets.

email

string

  • Email address to use for login.