Docs

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>;

Returns

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