authenticate
Authenticates the user based on the provided authentication arguments.
import { authenticate } from "thirdweb/wallets/in-app"; const result = await authenticate({ client, strategy: "email", email: "example@example.org", verificationCode: "123456",});
function authenticate( args: OneOf< | AuthArgsType | { ecosystem?: Ecosystem; redirect: boolean; strategy: | "google" | "apple" | "facebook" | "discord" | "line" | "x" | "coinbase" | "farcaster" | "telegram"; } >,): Promise<void | AuthLoginReturnType>;
The authentication arguments.
let args: OneOf< | AuthArgsType | { ecosystem?: Ecosystem; redirect: boolean; strategy: | "google" | "apple" | "facebook" | "discord" | "line" | "x" | "coinbase" | "farcaster" | "telegram"; }>;