Skip to main content
Instead of building your own flow, it’s highly recommended to fork an existing flow from the public sample codes found here

Flow Overview

1

Welcome Screen

Initial user greeting and introduction
2

Consent Screen

Capture user consent for data processing
3

OCR Component

Document capture for Identity check
4

Biometrics Component

Biometrics (selfie capture) for facial identity
OCR Review Features
The OCR Review screen automatically extracts data from captured documents and allows users to verify:
  • Personal information (names)
  • Address details
  • Document information
  • Biometric data accuracy

Implementation Guide

Replace <YOUR_GOOGLE_API_KEY> with your actual Google API key for address autocomplete functionality.

Event Handling

Complete Implementation

Best Practices

Error Handling

Add try-catch blocks around asynchronous operations and SDK calls to handle potential errors gracefully.

User Experience

Provide clear loading states and feedback during document processing and verification steps.

Testing

Test the flow with various document types and edge cases to ensure robust implementation.

Security

Ensure secure handling of the session object and API keys.
Remember to handle API key security appropriately. Never expose your Google API key directly in client-side code in production environments.