authenticateWithRedirect

Authenticates the user based on the provided authentication arguments using a redirect.

Example

import { authenticateWithRedirect } from "thirdweb/wallets/in-app";
const result = await authenticateWithRedirect({
client,
strategy: "google",
mode: "redirect",
redirectUrl: "https://example.org",
});
function authenticateWithRedirect(
args: SocialAuthArgsType & {
client: ThirdwebClient;
ecosystem?: Ecosystem;
},
): Promise<void>;

Parameters

The authentication arguments.

Type

let args: SocialAuthArgsType & {
client: ThirdwebClient;
ecosystem?: Ecosystem;
};

Returns

let returnType: Promise<void>;

A promise that resolves to the authentication result.