Hook to get the user's email from connected EmbeddedWallet
EmbeddedWallet
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>;
let returnType: UseQueryResult<string | undefined>;
Hook's data property contains the string email if EmbeddedWallet is connected, otherwise undefined
data
string
undefined