getUserEmail

Retrieves the authenticated user email for the active in-app wallet.

Example

import { getUserEmail } from "thirdweb/wallets/in-app";
const email = await getUserEmail({ client });
console.log(email);
function getUserEmail(
): Promise<undefined | string>;

Parameters

The arguments for retrieving the authenticated user.

Type

let options: { client: ThirdwebClient; ecosystem?: Ecosystem };

Returns

let returnType: Promise<undefined | string>;

The authenticated user email if logged in and wallet initialized, otherwise undefined.