Skip to main content

Server — @worldcoin/human-in-the-loop

requestHumanAuthorization(options?)

Import from @worldcoin/human-in-the-loop/workflows. Returns a tool execute function that pauses the workflow until a World ID proof is received. Returns Promise<IDKitResult>.

Client — @worldcoin/human-in-the-loop-react

<HumanApproval>

Drop-in component that renders the World ID widget and posts the proof back automatically. Ships unstyled.

useHumanApproval(message, part)

Headless hook for custom approval UI.