This example app shows how to use Sign In With Farcaster in a Next.js app with a backend API, using NextAuth.js for authentication.
In addition it illustrates how one can use Open Data on Web3 Networks like Ethereum and Farcaster to hyperpersonalise an E-Commerce Store Front.
bun install
bun run dev
Make sure you're .env
is properly set.
For illustration purposes the following .env
can be used.
NEXTAUTH_SECRET='760...'
NEXTAUTH_URL='http://localhost:3000'
NEYNAR_API_KEY='NEYNAR_API_DOCS'
which is also present in .env.sample
You likely want to configure the NEXTAUTH_URL yourself and set it to your actual domain.
Reach out to Samuel Huber or us directly at dtech.vision
To learn more on how this was built the detailled documentation to consult is as follows: