Minimal example of sign in with Ethereum. Compatible with web3 browsers.
Last updated Aug 25, 2025
27
Stars
0
Forks
0
Issues
0
Stars/day
Attention Score
8
Language breakdown
JavaScript 74.5%
HTML 25.5%
▸ Files
click to expand
README
Sign In With Ethereum
login with web3 wallet

Demo at https://sign-in-with-ethereum.netlify.app/.
TODO
- ✅ Launch MetaMask extension on button click
- ✅ Display public Account information
- ✅ Show warning if web2 browser
- ✅ Show ens name if any
- ✅ Verify user by asking them to sign a message with their private key
- ✅ Set cookie 🍪 so user is signed in on next load
- ✅ log out
- ⬜️ Mint eth nft
Running
- serve locally
python3 -m http.server 8000 --bind 127.0.0.1 - open
http://localhost:8000
Dependencies
- https://docs.ethers.io/v5/
Credits
Inspired by:
- https://twitter.com/BrantlyMillegan/status/1402388133086367751
- https://twitter.com/gregisenberg/status/1435234043583467526
🔗 More in this category