Skip to content

docs: add IDKit invite-code mode page#111

Merged
SeanROlszewski merged 33 commits into
mainfrom
docs/idkit-invite-code-mode
May 6, 2026
Merged

docs: add IDKit invite-code mode page#111
SeanROlszewski merged 33 commits into
mainfrom
docs/idkit-invite-code-mode

Conversation

@SeanROlszewski
Copy link
Copy Markdown
Contributor

@SeanROlszewski SeanROlszewski commented May 1, 2026

Summary

  • Documents invite-code mode (WDP-73 / idkit app-9428): the user enters a 6-character code in World App, which uses it as the entry point to in-app onboarding flows that fulfill the IDKit request.
  • Adds a new Verification Flows page (world-id/idkit/verification-flows.mdx) covering hot, warm, and cold paths a user can take when an app requests a World ID proof — including the invite-code flow.
  • Invite-code migration guide and per-SDK code examples added to the JavaScript, React, and Swift SDK reference pages.
  • Cross-link from integrate.mdx; sidebar entry added to navigation.
  • Constraints flagged: iOS-only on the World App side, selfieCheckLegacy is the only supported preset today.
  • Fixes inconsistent title casing across IDKit section pages.

Test plan

  • Verify the local Mintlify preview renders all new and changed pages correctly
  • Confirm nav links in the IDKit section resolve without 404s
  • Check that invite-code SDK examples render properly in JavaScript, React, and Swift reference pages
  • Verify redirects from old paths (e.g. /world-id/idkit/invite-code) land correctly

🤖 Generated with Claude Code

Documents the cross-device verification flow added in idkit APP-9428,
where the relying party shows a 6-character code the user types into
World App on a different device instead of scanning a QR.

- New page world-id/idkit/invite-code.mdx covering when to use the
  mode, the code format, lifecycle, and JS/React/Swift integration.
- Wired into IDKit nav between Integrate and Signatures.
- Cross-link from the standard Integrate page.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@SeanROlszewski SeanROlszewski marked this pull request as draft May 1, 2026 18:43
Comment thread world-id/idkit/invite-code.mdx Outdated

## When to use it

Use invite-code mode when the relying party (your app) and World App are reliably **on different devices** — for example, a desktop browser experience where the user has World App on their phone. Typing a 6-character code is more robust than asking the user to point a phone camera at their own laptop screen.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This isn't the reason we built it, but is something we ensured worked. The reason to use this feature is to expedite onboarding users into the World Network. The app uses the code to show in-app flows that users complete as part of onboarding to respond to the IDKit request.

Comment thread world-id/idkit/invite-code.mdx Outdated
Comment thread world-id/idkit/invite-code.mdx Outdated
- Reframe "When to use it" to lead with the onboarding use case
  (the hero use case is letting World App run in-app onboarding
  flows so users can satisfy a credential they don't yet hold);
  cross-device is now described as a secondary fit.
- Switch JS/React/Swift examples and the migration diff to
  selfieCheckLegacy so the doc reflects the current hero preset.
- Remove the "easier to read aloud" line and the reference to the
  example apps under "Display the code" — a React component will
  ship for that surface.
- Update the cross-link in integrate.mdx to match the new framing.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Comment thread world-id/idkit/invite-code.mdx Outdated
Trim the overview and move per-SDK details to the existing reference
pages so the structure matches how other IDKit features are documented.

- Tighten the lede; collapse "When to use it" to two paragraphs.
- Drop the Crockford / check-character internals — feature pages
  don't explain crypto details (signatures.mdx is the spec page).
- Drop the inline "Migrating from QR mode" section — migration
  content belongs on 4-0-migration.mdx.
- Replace the three Markdown API tables with a "SDK references"
  link list pointing into the per-language pages.
- Add a Warning callout about generating rp_context server-side.
- Show the RpContext(...) constructor in the Swift sample so it
  parallels JS/React.
- Add "Invite-code mode" sections to javascript.mdx, react.mdx, and
  swift.mdx using the existing terse-bullet style of those pages.
- Add IDKit.requestWithInviteCode and selfieCheckLegacy to the JS
  entry-points list.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Invite-code redemption is currently shipped only in World App for iOS;
Android users cannot redeem a code today. Surface the constraint as a
Note callout on the overview page and append it to the cross-link in
integrate.mdx so anyone evaluating the feature sees it.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Comment thread world-id/idkit/invite-code.mdx Outdated
Comment thread world-id/idkit/invite-code.mdx Outdated
Invite-code mode currently only works with the selfie-check preset.
Add a Note alongside the iOS-only one so the constraint is visible
on the overview page; the docs will be updated as support is added
for other credentials.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Comment thread world-id/idkit/integrate.mdx Outdated
Comment thread world-id/idkit/invite-code.mdx Outdated
Comment thread world-id/idkit/invite-code.mdx Outdated
Comment thread world-id/idkit/invite-code.mdx Outdated
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@SeanROlszewski SeanROlszewski marked this pull request as ready for review May 6, 2026 19:01
Replace the prose migration section in verification-flows with
before/after code snippets in the JavaScript, React, and Swift
SDK reference pages.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Comment thread world-id/idkit/verification-flows.mdx Outdated
Comment thread world-id/idkit/verification-flows.mdx
Comment thread world-id/idkit/verification-flows.mdx
Comment thread world-id/idkit/verification-flows.mdx Outdated
Comment thread world-id/idkit/verification-flows.mdx Outdated
Comment thread world-id/idkit/verification-flows.mdx Outdated
Comment thread world-id/idkit/verification-flows.mdx Outdated
Comment thread world-id/idkit/verification-flows.mdx Outdated
Comment thread world-id/idkit/verification-flows.mdx Outdated
Comment thread world-id/idkit/verification-flows.mdx Outdated
Comment thread world-id/idkit/integrate.mdx Outdated
Comment thread world-id/idkit/integrate.mdx Outdated
- Introduce deferred deep linking concept in cold flow section
- Fix App Clip flow: selection only, NFC scan happens in full app
- Update invite-code note to explain why it's iOS-only
- Remove world.org/verify reference from landing page step
- Remove code format section and countdown mention from lifecycle
- Move integrate.mdx Note to step 4, reframe as verification flows intro
- Add mermaid sequence diagrams for all cold flow variants

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Standardize to title case: "Verification Flows", "On-chain Verification",
and "JavaScript".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@SeanROlszewski SeanROlszewski merged commit 3f4c6b2 into main May 6, 2026
9 checks passed
@SeanROlszewski SeanROlszewski deleted the docs/idkit-invite-code-mode branch May 6, 2026 20:19
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