UNPKG

@0xsequence/connect

Version:
22 lines 841 B
/** * Hook to retrieve the email address associated with the currently connected wallet. * * This hook monitors the connection status and retrieves the stored email address when a wallet * is connected. It works with both WaaS (Wallet-as-a-Service) and universal wallet types. * The email is cleared when the wallet is disconnected. * * @see {@link https://docs.sequence.xyz/sdk/web/wallet-sdk/ecosystem/hooks/useSignInEmail} for more detailed documentation. * * @returns {string | null} The email address of the connected wallet user, or null if not connected * or no email is associated * * @example * ```tsx * const email = useSignInEmail() * if (email) { * console.log('Connected user email:', email) * } * ``` */ export declare const useSignInEmail: () => string | null; //# sourceMappingURL=useSignInEmail.d.ts.map