Skip to content

Template repository for building a mini app in NextJS

Notifications You must be signed in to change notification settings

worldcoin/minikit-next-template

Repository files navigation

This template provides a minimal setup to get Next.js working with MiniKit

Setup

cp .env.example .env
pnpm i
pnpm dev

To run as a mini app choose a production app in the dev portal and use NGROK to tunnel. Set the NEXTAUTH_URL and the redirect url if using sign in with worldcoin to that ngrok url

Open http://localhost:3000 with your browser to see the result.

To use the application, you'll need to:

  1. Get World ID Credentials From the World ID Developer Portal:

    • Create a new app to get your APP_ID
    • Get DEV_PORTAL_API_KEY from the API Keys section
    • Navigate to "Sign in with World ID" page to get:
      • WLD_CLIENT_ID
      • WLD_CLIENT_SECRET
  2. Configure Action

    • In the Developer Portal, create an action in the "Incognito Actions" section
    • Use the same action name in components/Verify/index.tsx

View docs: Docs

Developer Portal

About

Template repository for building a mini app in NextJS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published