docs: add IDKit invite-code mode page#111
Merged
Merged
Conversation
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
commented
May 1, 2026
|
|
||
| ## 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. |
Contributor
Author
There was a problem hiding this comment.
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.
SeanROlszewski
commented
May 1, 2026
SeanROlszewski
commented
May 1, 2026
- 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>
SeanROlszewski
commented
May 1, 2026
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>
SeanROlszewski
commented
May 1, 2026
SeanROlszewski
commented
May 1, 2026
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>
SeanROlszewski
commented
May 1, 2026
SeanROlszewski
commented
May 1, 2026
SeanROlszewski
commented
May 1, 2026
SeanROlszewski
commented
May 1, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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>
SeanROlszewski
commented
May 6, 2026
SeanROlszewski
commented
May 6, 2026
SeanROlszewski
commented
May 6, 2026
SeanROlszewski
commented
May 6, 2026
SeanROlszewski
commented
May 6, 2026
SeanROlszewski
commented
May 6, 2026
SeanROlszewski
commented
May 6, 2026
SeanROlszewski
commented
May 6, 2026
SeanROlszewski
commented
May 6, 2026
SeanROlszewski
commented
May 6, 2026
SeanROlszewski
commented
May 6, 2026
SeanROlszewski
commented
May 6, 2026
- 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>
murph
approved these changes
May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
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.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.integrate.mdx; sidebar entry added to navigation.selfieCheckLegacyis the only supported preset today.Test plan
/world-id/idkit/invite-code) land correctly🤖 Generated with Claude Code