Skip to content

GuidesVerify

Verify inside your app

Run the verification natively in your iOS, Android, React Native or Flutter app: your server starts it and hands the app a session token, and the result reaches your server, never the app.

Updated

Ask about this pageRead this page as Markdown

How it works

  1. Your server starts the verification with deliver: "link" and gets a session token for it.
  2. Your app starts the Kontiga SDK with the token: one call on iOS, on Android, and through the React Native and Flutter SDKs.
  3. The person goes through the steps the profile asks for, natively and in your brand kit, the passport’s chip included when the profile reads it.
  4. The SDK tells your app the outcome. Your server receives the result.
curl -X POST https://api.kontiga.com/v1/identity_verifications/idv_6Wn3Rk8/session_tokens \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

POST /v1/identity_verifications/{verification_id}/session_tokens

Hand the token to your app only, and never log it. It belongs to the first device that uses it and works for 30 minutes, renewed while in use. The app keeps it while the verification is open, so a closed app comes back at the same step.

What the SDK tells your app

Outcomes
OutcomeMeansDo
submittedNothing more waits for the person.Show that it is done; wait for your server.
cancelledThe person stopped.Offer to start again later.
failed, session_expiredThe token ran out or was revoked.Get a new token for the same verification; the SDK resumes at the same step.
failed, permission_deniedThe camera, or NFC for the chip, was refused.The SDK has explained and offered the settings.
failed, client_outdatedThis SDK version cannot show a screen the verification needs.Update the SDK.

What your app declares

Platform settings
PlatformForDeclare
iOSThe cameraNSCameraUsageDescription.
iOSThe chipThe NFC tag reading capability, the travel document application identifier A0000002471001 under com.apple.developer.nfc.readersession.iso7816.select-identifiers, and NFCReaderUsageDescription.
AndroidThe camera and the chipandroid.permission.CAMERA and android.permission.NFC.

With no app of your own

When a profile reads the chip and the person verifies in a browser, the portal offers Kontiga’s own app for the chip, and the person comes back to the browser. Someone who cannot use it verifies with the ID’s pictures and a selfie.

The calls the SDKs make, with their limits and errors: The verification client API.