Expo
Install
Install IDKit and Expo Crypto:Import
Import hooks and presets from@worldcoin/idkit/expo:
/expo entry configures secure randomness automatically. No global polyfill or runtime configuration is required.
@worldcoin/idkit/hooks exports the same hooks without loading browser widgets or configuring Expo Crypto. The /expo entry adds that automatic configuration, so Expo apps only need the /expo import above.
Verification screen
Fetch a fresh, signedrpContext from your backend before showing this screen. Replace the app ID and action with your application’s values.
flow.open() creates the request and starts polling. Your app opens World App using Linking.openURL; the hook does not render a screen or open World App automatically.
Configure the myapp:// callback scheme in your app to match return_to. Send flow.result to your backend for verification before granting access. Keep RP signing keys on your backend.
See the headless hooks reference for hook options and result fields. IDKit’s web widgets are for browser integrations.