Skip to content

docs(idkit): document debug report + v4 accuracy fixes#133

Merged
Takaros999 merged 2 commits into
mainfrom
docs/idkit-debug-report
Jun 25, 2026
Merged

docs(idkit): document debug report + v4 accuracy fixes#133
Takaros999 merged 2 commits into
mainfrom
docs/idkit-debug-report

Conversation

@soamdesai-tfh

Copy link
Copy Markdown
Contributor

Summary

Documents the new IDKit debug report (idkit#287) across the World ID docs, plus a set of accuracy fixes surfaced while auditing the IDKit docs against the current SDK source.

Debug report (idkit#287)

  • getDebugReport(): IDKitDebugReport on IDKitRequest / IDKitInviteCodeRequest and on the React hook results — javascript.mdx, react.mdx.
  • Widget onError(errorCode, debugReport?) — the new optional second argument (passed for flow/bridge errors; host-app verify failures such as failed_by_host_app omit it).
  • New exported types IDKitDebugReport / MiniAppDebugInfo (incl. the mini_app native-transport fields) — javascript.mdx, error-codes.mdx, mini-apps.mdx.

v4 example & schema accuracy

  • Response identifier: orbproof_of_human for protocol 4.0 examples (snippet + OpenAPI); orb kept for v3/legacy. The v4 identifier is the credential type — confirmed via the signal-hash keying (bridge.rs:482 insert by credential_type, :291 lookup by identifier).
  • user_presence_completed added to the verify request schemas (IDKit always sends it).
  • session_id documented as session_<128 hex characters>; fixed unrealistic examples.
  • Dropped credential_genesis_issued_at_min from the verify response-item schemas (it's a request-side constraint, never returned in the result).

Preset guidance

  • SKILL.md and integration-prompt.mdx now recommend proofOfHuman / passport (v4, with legacy fallback) instead of orbLegacy / secureDocumentLegacy (3.0-only), matching credentials.mdx.

Other fixes

  • 4-0-migration.mdx: CredentialRequest("orb")"proof_of_human" (invalid CredentialType).
  • onchain-verification.mdx: corrected rp_id and genesis result-mapping (neither is a result field).
  • integration-prompt.mdx: signRequest({ signingKeyHex, action }) options-object signature + camelCase→snake_case rp_context mapping note.
  • kotlin.mdx: added the missing IDKitRequestConfig import.
  • from-idkit-standalone.mdx: removed a stray character.

Verification

All findings were verified against the worldcoin/idkit SDK source (including the Rust core) before applying.

🤖 Generated with Claude Code

Debug report (idkit#287): getDebugReport() on requests and React hooks, onError(errorCode, debugReport?), and IDKitDebugReport/MiniAppDebugInfo types — documented across javascript, react, error-codes, and mini-apps.

v4 example/schema accuracy: response identifier orb -> proof_of_human for protocol 4.0 (orb kept for v3/legacy); add user_presence_completed to verify request schemas; document the session_<128 hex> id format; drop credential_genesis_issued_at_min from verify response items (it is a request-side constraint, not returned).

Preset guidance: SKILL.md and integration-prompt now recommend proofOfHuman/passport (v4, with legacy fallback) over orbLegacy/secureDocumentLegacy (3.0-only), matching credentials.mdx.

Other fixes: 4-0-migration CredentialRequest("orb")->"proof_of_human"; onchain rp_id/genesis result-mapping; signRequest options-object signature in the LLM prompt; kotlin IDKitRequestConfig import; remove stray character in from-idkit-standalone.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
world 🟢 Ready View Preview Jun 24, 2026, 7:19 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Takaros999
Takaros999 previously approved these changes Jun 24, 2026
Comment thread world-id/idkit/error-codes.mdx Outdated
In JS and React, match these with `IDKitErrorCodes`. Kotlin and Swift expose the same raw values through their `IDKitErrorCode` enums.
In JS and React, match these with `IDKitErrorCodes`. Kotlin and Swift expose the same raw values through their `IDKitErrorCode` enums.

<Note>The `IDKitDebugReport` is JS-only, exported from `@worldcoin/idkit-core` and re-exported from `@worldcoin/idkit`; the related `MiniAppDebugInfo` type is exported from `@worldcoin/idkit-core` only. The Kotlin, Swift, and Go SDKs do not provide it.</Note>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit. this is unessecary

Removed note about IDKitDebugReport and MiniAppDebugInfo from error-codes.mdx.
@Takaros999 Takaros999 merged commit 444ac15 into main Jun 25, 2026
9 checks passed
@Takaros999 Takaros999 deleted the docs/idkit-debug-report branch June 25, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants