Skip to main content

Overview

This page covers advanced vendor-specific customization options for styling, theming, and configuration that go beyond the basic provider options documented on each module’s page. For basic provider options such as sdkVersion, showExitButton, crossDevicePolicy, fallback, and biometricsVariant, refer to the individual module pages:

Content Security Policy (CSP) Settings

If your application enforces a Content Security Policy, you will need to allowlist domains for both OneSDK itself and the third-party vendor SDK it loads at runtime. Without the correct CSP rules, the browser will block scripts, API calls, or media resources and the verification flow will fail silently or show errors.

OneSDK Base Domains

All integrations require these FrankieOne domains regardless of which vendor you use:

Vendor-Specific Domains

Add the rules below for the vendor(s) you are integrating with. These are in addition to the base domains above and your existing 'self' policy.
Onfido maintains their own CSP guide. Refer to Onfido CSP Guide for the latest required domains.
CSP requirements change between Onfido SDK versions. If you set a specific sdkVersion in your recipe, check the Onfido CSP guide for that version.
If you encounter CSP errors at runtime, check the browser console for the blocked URL and directive. Add the domain to the appropriate directive. See CSP Error Troubleshooting for details.

Onfido

SDK Version Selection

The sdkVersion property on the Onfido provider object controls which Onfido SDK version is loaded at runtime. By default, OneSdk uses Onfido v12 for backward compatibility. You can switch to a newer version by setting sdkVersion in the provider configuration for any module that uses Onfido (IDV, OCR, or Biometrics).
Refer to the Onfido SDK changelog for the latest available version.

Custom UI Styling (customUI)

Onfido provides extensive styling capabilities to customize the verification UI to match your application’s design. Apply custom styling by setting the customUI property on the Onfido provider object for any module (IDV, OCR, or Biometrics).

All Available Properties

Full Property Reference

Code Example

Theme Option

Onfido v14 introduces a theme option that can be set on the provider object. The available values are 'light' (default) and 'dark'.
The theme option provides a base light or dark appearance. You can further customize individual elements using customUI properties on top of the chosen theme.
Refer to Onfido’s customUI styling documentation for the full list of supported styling keys and visual examples.

Document and Country Configuration

You can configure which document types and countries are accepted during document capture by providing a documents array in the recipe configuration. This applies to both the IDV and OCR modules when using Onfido. By default, if no documents configuration is provided, the Onfido selection screen is shown with all supported document types and an empty country selection. Depending on the configuration:
  • The country selection screen will not be shown if only one country is specified or if only passports are allowed
  • The document selection screen will not be shown if only one document type is specified
If you specify different countries for different document types (for example, 'NZL' for passports and 'SGP' for driver’s licences), Onfido will fall back to displaying the full selection screen with all supported documents. Ensure all document types share the same country list to control the selection screens as expected.

Exit Button and User Exit Handling

The showExitButton property (defaults to false) displays an exit button in the Onfido verification UI. When the user clicks the exit button, a vendor_event event is emitted with the event name OCR:ONFIDO:ON_USER_EXIT.

Error Codes

OneSdk surfaces Onfido-specific errors through the onError callback. The following table lists Onfido error codes, their meaning, and recommended recovery actions.

Incode

Style Customization

OneSdk uses Incode’s low-code approach for rendering the verification UI. To customize the appearance of the Incode integration, define custom CSS and work with the support team to apply it through the Incode portal.
Refer to Incode’s theming documentation for details on customizing the appearance.

SDK Version

The Incode SDK version can be set via the sdkVersion property on the provider object.
Check with Incode or the support team for the latest available SDK version.

Daon

Daon provides extensive visual customization options that are configured through the support team. Below are the customizable areas available.

Custom Colors

Icons

Fonts

Media

Daon themes support uploading custom images for capture instruction and processing screens. Supported file types: .jpg, .png, .jpeg, .svg, .gif, .mp4, .webm. Maximum file size is 5MB per asset.
To apply Daon visual customizations, contact the support team with your desired assets, colors, fonts, and icons.

Sumsub

Sumsub provides customization options through its SDK configuration, including theme selection ('light' or 'dark'), language settings, and iframe behavior options. These basic options are documented on the IDV Module, OCR Module, and Biometrics Module pages. For advanced visual customization (colors, fonts, branding), refer to the Sumsub Web SDK customization documentation.

Truuth

Truuth provides customization options through its provider configuration. For details on available customization options such as theming and branding, refer to the Truuth documentation or contact the support team.