settingsStrictness
Controls whether an invalid configuration value blocks the SDK or is replaced with its default value.
Last updated
Controls whether an invalid configuration value blocks the SDK or is replaced with its default value.
Attribute: settings-strictness
Type: boolean
Default value: false
provider.settingsStrictness = true;Controls how an invalid configuration value is handled in facephi-sdk-provider and in the components it hosts (Selphi, SelphID, Video Provider and File Uploader).
false (default): permissive mode. The invalid value is replaced by its default value and a warning is issued in the console.
true: strict mode. The SDK stops execution and displays the error SettingsError (code SDK_137).
It is not propagated to Selphi/SelphID: this value only controls the validation of the facephi-sdk-provider (and of Video Provider and File Uploader). The widgets facephi-selphi-widget and facephi-selphid-widget do not inherit it: to control their validation, you must define settingsStrictness it directly in each of them.
Last updated
<facephi-sdk-provider
apikey={process.env.FACEPHI_SDK_APIKEY}
settingsStrictness={true}
/>