Retrieves all linked profiles of the connected in-app or ecosystem account.
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>>;
let args: { client: ThirdwebClient };
let returnType: UseQueryResult<Array<Profile>>;
A React Query result containing the linked profiles for the connected in-app account. This hook will only run if the connected wallet supports account linking.