/sign-in-with-ethereum

Minimal example of sign in with Ethereum. Compatible with web3 browsers.

Primary LanguageJavaScript

Sign In With Ethereum

login with web3 wallet

screen

Demo at https://sign-in-with-ethereum.netlify.app/.

TODO

  1. ✅ Launch MetaMask extension on button click
  2. ✅ Display public Account information
  3. ✅ Show warning if web2 browser
  4. ✅ Show ens name if any
  5. ✅ Verify user by asking them to sign a message with their private key
  6. ✅ Set cookie 🍪 so user is signed in on next load
  7. ✅ log out
  8. ⬜️ Mint eth nft

Running

  • serve locally python3 -m http.server 8000 --bind 127.0.0.1
  • open http://localhost:8000

Dependencies

Credits

Inspired by:

  1. https://twitter.com/BrantlyMillegan/status/1402388133086367751
  2. https://twitter.com/gregisenberg/status/1435234043583467526