getUserPhoneNumber

Retrieves the authenticated user phone number for the active embedded wallet.

Example

import { getUserPhoneNumber } from "thirdweb/wallets/embedded";
const phoneNumber = await getUserPhoneNumber({ client });
console.log(phoneNumber);

Parameters

Returns

The authenticated user phone number if authenticated with phone number, otherwise undefined.