This Sign-In with Ethereum NextAuth.js example is the result of a code-along tutorial to help developers get their hands on a fully functional and easy to understand demo.
A full tutorial on how to set up the example can be found here.
- Yarn
- Node.js
- MetaMask extension wallet
- An Ethereum account in MetaMask
Change the name of .env.local.example
to .env.local
, and fill in the following two values:
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=somereallysecretsecret
You can use the following commands to run the example:
yarn install
yarn run dev
A live demo of the example can be found here.
ISC