Let a user click “Sign in with Base,” prove ownership of their onchain account, and give your server everything it needs to create a session – using open standards and no passwords
Base Accounts build on those standards so you can reuse any SIWE tooling – while still benefiting from passkeys, session keys, and smart-wallet security.
Undeployed Smart Wallets?
Base Account signatures include the ERC-6492 wrapper so they can be verified even before the wallet contract is deployed. Viem’s verifyMessage
and verifyTypedData
handle this automatically.
If using the above code beyond Base Account, note that not every wallet supports the new wallet_connect
method yet. If the call throws method_not_supported
, fall back to using eth_requestAccounts
and personal_sign
.
For a full React example see the React + Wagmi guide.
Use the pre-built component for a native look-and-feel:
See full props and theming options in the Button Reference and Brand Guidelines.