getProfiles

Gets the linked profiles for the provided wallet. This method is only available for in-app wallets.

Example

import { inAppWallet } from "thirdweb/wallets";
const wallet = inAppWallet();
wallet.connect({ strategy: "google" });
const profiles = await getProfiles(wallet);
console.log(profiles[0].type);
console.log(profiles[0].details.email);
function getProfiles(
wallet: Wallet<"inApp" | `ecosystem.${string}`>,
): Promise<Array<Profile>>;

Parameters

Type

let wallet: Wallet<"inApp" | `ecosystem.${string}`>;

Returns

let returnType: Promise<Array<Profile>>;

An array of accounts user profiles linked to the current wallet.