> ## Documentation Index
> Fetch the complete documentation index at: https://sequence-0fb8d9e6-codex-update-discord-invite.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# useSignInEmail

> Hook to retrieve the email address associated with the connected wallet

## Import

```tsx theme={null}
import { useSignInEmail } from '@0xsequence/connect'
```

## Usage

```tsx theme={null}
import { useSignInEmail } from '@0xsequence/connect'

function App() {
  const email = useSignInEmail()
  
  return (
    <div>
      <h2>User Information</h2>
      {email ? (
        <div>
          <p>Connected with email: {email}</p>
        </div>
      ) : (
        <p>No email associated with connected wallet</p>
      )}
    </div>
  )
}
```

## Return Type

```tsx theme={null}
string | null
```

The hook returns:

* A `string` containing the email address when a wallet is connected and has an associated email
* `null` when:
  * No wallet is connected
  * The connected wallet has no associated email
  * The wallet has been disconnected

## State Management

The hook manages the email state by:

1. Monitoring the wallet connection status
2. Retrieving the stored email when a wallet connects
3. Clearing the email when the wallet disconnects
4. Persisting the email in local storage using the `WaasSignInEmail` key

## Notes

This hook is designed to work with both:

* Sequence WaaS (Wallet-as-a-Service) wallets
* Universal wallet types

The hook integrates with Sequence's storage system to maintain email persistence across sessions while ensuring proper cleanup when wallets are disconnected.
