Skip to main content
You are viewing docs for the previous version of the Wallets SDK. We recommend upgrading to V1. See the updated version of this page or the V1 migration guide.
Use an email OTP signer to let users authenticate via a one-time password sent to their email address. Email signers can be configured as a recovery signer (to regain wallet access on a new device) or as an operational signer (to authorize day-to-day transactions). A wallet can have multiple email signers. For a conceptual overview, see Email OTP in the Wallet Signers guide. To learn how to register operational signers on a wallet, see Registering a signer.

Configuration

import { useWallet } from '@crossmint/client-sdk-react-ui';

const { getOrCreateWallet } = useWallet();

const wallet = await getOrCreateWallet({
    chain: "base",
    signer: {
        type: "email",
        email: "user@example.com"
    },
});