useEmbeddedWalletUserEmail

Hook to get the user's email from connected EmbeddedWallet

Example

const emailQuery = useEmbeddedWalletUserEmail();
if (emailQuery.isFetching) {
return <div> Loading... </div>;
}
if (emailQuery.data) {
return <div> Connected with {emailQuery.data} </div>;
}
return <div> Not connected </div>;
function useEmbeddedWalletUserEmail(): UseQueryResult<
string | undefined
>;

Returns

let returnType: UseQueryResult<string | undefined>;

Hook's data property contains the string email if EmbeddedWallet is connected, otherwise undefined