dabit3 / worldid-auth

Example of Authentication with WorldID, ConnectKit, Airstack, & Next.js

Home Page:https://worldid-auth.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

World ID Authentication with Next.js

To learn more about WorldID click here

This app implements unlimited verifications for more of a traditional authentication flow, for single use verification for sybil resistance, set the Verifications per person to be Unique.

Running the app

  1. Clone the repo and install dependencies
git clone git@github.com:dabit3/worldid-auth.git

cd worldid-auth

npm install

# or yarn, pnpm, bun, etc...
  1. Create WorldID App

Be sure to set the app as "Production" to use on a real device.

  1. Create WorldID Action

Be sure to set the Maximum Verifications Per User to "Unlimited"

  1. Configure environment variables, including App ID and Action from previous two steps.
# rename .env.local.example to .env.local

# Airstack API Key
AIRSTACK_API_KEY=""

# WalletConnect Project ID
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=""

# WorldCoin ID Action Name
NEXT_PUBLIC_WC_ACTION=""

# Worldcoin ID App Name
# Remove "_app" from the WorldCoin App ID before setting
NEXT_PUBLIC_WLD_APP_ID=""
  1. Run the app
npm run dev

About

Example of Authentication with WorldID, ConnectKit, Airstack, & Next.js

https://worldid-auth.vercel.app


Languages

Language:TypeScript 82.5%Language:JavaScript 10.7%Language:CSS 6.8%