This example shows how to implement web3 authentication with Next.js
https://solutions-web3-authentication.vercel.app
You can choose from one of the following two methods to use this repository:
Deploy the example using Vercel:
Execute create-next-app
with pnpm to bootstrap the example:
pnpm create next-app --example https://github.com/vercel/examples/tree/main/solutions/web3-authentication
Setup the required environment variables in your env.local
file. NEXTAUTH_URL
should be your full url.
NEXTAUTH_SECRET
should be a secure random string.You can generate one here
NEXTAUTH_URL=
NEXTAUTH_SECRET=
Next, run Next.js in development mode:
pnpm dev
Deploy it to the cloud with Vercel (Documentation).