authenticate

Authenticates the user based on the provided authentication arguments.

Example

import { authenticate } from "thirdweb/wallets/in-app";
const result = await authenticate({
client,
strategy: "email",
verificationCode: "123456",
});
function authenticate(
args: AuthArgsType,
): Promise<AuthStoredTokenWithCookieReturnType>;

Parameters

The authentication arguments.

Type

let args: AuthArgsType;

Returns

let returnType: Promise<AuthStoredTokenWithCookieReturnType>;

A promise that resolves to the authentication result.