Skip to main content

Import

import { useSignInEmail } from '@0xsequence/connect'

Usage

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

string | null
Returns the email address string when a wallet is connected and has an associated email, or null when no wallet connection exists or no email is associated.

Notes

  • Works with both WaaS wallets and universal wallet types.
  • Email data is persisted across sessions using local storage.
  • Email data is automatically cleared when the wallet disconnects.