getProfiles

Gets the linked profiles for the connected in-app or ecosystem wallet.

Example

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

Parameters

Type

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

Returns

let returnType: Promise<Array<Profile>>;

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