MDK Logo
UI Kitreact-adapterHooks

useCurrentUserEmail

Fetches `/auth/userinfo` and returns the current user's email. Used by `useLiveActions` to partition actions into "mine vs others".

Fetches `/auth/userinfo` and returns the current user's email. Used by `useLiveActions` to partition actions into "mine vs others".

import { useCurrentUserEmail } from "@tetherto/mdk-react-adapter";

Signature

() => string | undefined
Package@tetherto/mdk-react-adapter
Requires providerNo