Skip to main content
Set the callbacks in the init config:
See Configuration for all options.

onComplete

Called when all data is collected and no further input is needed from the applicant.

Completion is not the decision

When onComplete fires, the verification is usually still processing. If you set onVerificationComplete, onComplete fires after processing is done. Either way, always take the decision on your backend. Results are usually available within 9 seconds, occasionally within 30 seconds. You can continue the applicant’s journey and show the result later, or show a loading state while you wait. See Webhooks.

onFail

Called when something goes wrong during the verification process. Receives code and message.

onClose

When set, a close button is added. The callback fires when the applicant clicks it. Receives code and message.

onBack

When set, a back button is added to the first screen. The callback fires when the applicant clicks it.

onVerificationComplete

When set, the SDK waits for the verification result before it finishes:
  1. After the applicant submits, the SDK keeps them on a wait screen and checks the application status every second.
  2. When processing is done, it calls onVerificationComplete with the result.
  3. The SDK shows the thank-you screen.
  4. onComplete fires.