Login
sendEmailVerificationCode
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,
email: "example@treasure.lol",
});
Props
client
TreasureConnectClient
- Client obtained from
createTreasureConnectClient
.
string
- Email address to use for login.