useProfiles

Retrieves all linked profiles of the connected in-app or ecosystem account.

Example

import { useProfiles } from "thirdweb/react";
const { data: profiles } = useProfiles({
client,
});
console.log("Type:", profiles[0].type); // "discord"
console.log("Email:", profiles[0].details.email); // "john.doe@example.com"
function useProfiles(args: {
client: ThirdwebClient;
}): UseQueryResult<Array<Profile>>;

Parameters

Type

let args: { client: ThirdwebClient };

Returns

let returnType: UseQueryResult<Array<Profile>>;

A React Query result containing the linked profiles for the connected in-app account.