- Widget: A plug-and-play widget that handles UI/State management for you.
- Session API: An API that gives you total control of the user journey and UI/State management.
Install
IDKitWidget
A plug-and-play widget that handles UI and state management automatically. Initialize once, then callopen()
to show the verification modal.
Session API
For custom UIs and full control over the verification flow. Create a session, display the QR code, and poll for status updates.Backend Verification
Critical: You must verify all proofs on your backend. Never trust client-side verification alone. Your/api/verify
endpoint should validate the World ID proof:
Important considerations:
- Store
nullifier_hash
to prevent proof reuse - Match
action
andsignal
values between frontend and backend