getProfiles

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

Example

import { getProfiles } from "thirdweb/wallets";
const profiles = await getProfiles({
client,
});
console.log(profiles[0].type); // will be "email", "phone", "google", "discord", etc
console.log(profiles[0].details.email);
console.log(profiles[0].details.phone);

Getting profiles for a ecosystem user

import { getProfiles } from "thirdweb/wallets/in-app";
const profiles = await getProfiles({
client,
ecosystem: {
id: "ecosystem.your-ecosystem-id",
},
});
function getProfiles(
): Promise<Array<Profile>>;

Parameters

Type

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

Returns

let returnType: {
details: {
address?: Address;
email?: string;
id?: string;
phone?: string;
};
type: AuthOption;
};

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