This example demonstrates how to integrate Web3Auth into a Next.js application for EVM chains with server-side rendering support.
- Node.js 20+
- npm
- A Web3Auth Client ID (get one from Web3Auth Dashboard)
git clone https://github.com/Web3Auth/web3auth-examples.gitcd web3auth-examples/quick-starts/nextjs-quick-startnpm installCreate a .env.local file and add your Web3Auth Client ID:
NEXT_PUBLIC_WEB3AUTH_CLIENT_ID=your-client-idnpm run devVisit http://localhost:3000 in your browser to see the application running.
MIT