preAuthenticate

Pre-authenticates the user based on the provided authentication strategy. Use this function to send a verification code to the user's email or phone number.

Example

import { preAuthenticate } from "thirdweb/wallets/in-app";
const result = await preAuthenticate({
client,
strategy: "email",
});
function preAuthenticate(args: PreAuthArgsType): Promise<void>;

Parameters

The arguments required for pre-authentication.

Type

let args: PreAuthArgsType;

Returns

let returnType: Promise<void>;

A promise that resolves to the pre-authentication result.