Retrieves the authenticated user phone number for the active embedded wallet.
import { getUserPhoneNumber } from "thirdweb/wallets/embedded"; const phoneNumber = await getUserPhoneNumber({ client });console.log(phoneNumber);
function getUserPhoneNumber( options: GetAuthenticatedUserParams,): Promise<undefined | string>;
The arguments for retrieving the authenticated user.
let options: { client: ThirdwebClient; ecosystem?: Ecosystem };
let returnType: Promise<undefined | string>;
The authenticated user phone number if authenticated with phone number, otherwise undefined.