A comprehensive React demo showcasing the full capabilities of MetaMask Embedded Wallets (powered by Web3Auth): multiple social login methods, chain switching, transaction signing, user info retrieval, MFA, and more. Use this as a reference implementation before building your own integration.
- Node.js 20+
- npm
- A Client ID from the Dashboard
git clone https://github.com/Web3Auth/web3auth-examples.git
cd web3auth-examples/react-playgroundnpm installcp .env.example .envEdit .env and set your Client ID:
VITE_WEB3AUTH_CLIENT_ID=YOUR_CLIENT_ID
npm run devVisit http://localhost:5173 in your browser.
- Social logins (Google, Facebook, Discord, and more)
- External wallet connections (MetaMask Extension, WalletConnect)
- EVM transaction signing and message signing
- User info and wallet address display
- Chain switching across EVM networks
- MFA setup flow
MIT