Skip to main content
Version: Web SDK 2.8.x

Introduction of customization

It is possible to configure the verification process completely according to your preferences. This section contains all configuration options for the front-end and the OTP. On the remaining pages we highlight some special configuration options.

Front-end configuration

The front-end configuration can be applied as part of the config in Verifai front-end. More information on where to apply these variables can be found here.

KeyTypeRequiredDescriptionDefault
tokenstr✔️The OTP token-
assetsUrlstrURL to the assetsCDN
customAssetsUrlstrURL to the custom assetslink
onSuccessfnCallback for when the flow finisheslink
onCanceledfnCallback for when the flow is canceledlink
showboolBool that shows and closes the flowfalse
closableboolFlow can always be closedfalse
showGreetingboolWill show a greeting at beginning of flowtrue
showInstructionboolBool that inserts screens in the flow with instructions on uploading a travel document correctlyfalse
uploadTypesarrayRestrict upload types["phone", "file"]
backendUrlstrThe URL to the Verifai back-endSaaS
themeobjectTheme of the sdklink
faceMatchMobileOnlyboolAllow the Face Match feature only on Mobile Flowfalse
noncestrNonce for inline styles CSPundefined
displaystrShow the flow in a modal or inlinemodal

OTP configuration

The OTP configuration can be applied as part of the config in your back-end. More information on where to apply these variables can be found here.

KeyTypeRequiredExampleDefaultAPI link
allow_edit_privacy_filtersbooltruefalselink
cors_allowed_originstrSee link*link
country_choices_blacklistarray["BE"][]link
country_choices_whitelistarray["NL"]Alllink
document_type_whitelistarray["P"]["P", "I", "D", "RP", "R"]link
handover_base_urlstrSee link""link
internal_referencestr"Customer1"""link
localestr"en_US""en_US"link
enable_facematchboolfalsefalselink
enable_vizboolfalsefalselink
validatorsarraySee link[]link