settingsStrictness
Controls whether an invalid configuration value blocks the SDK or is replaced with its default value.
Details
Attribute: settings-strictness
Type: boolean
Default value: false
Morphology
provider.settingsStrictness = true;Description
Controls how an invalid configuration value is handled in facephi-sdk-provider and the components it hosts (Selphi, SelphID, Video Provider, and File Uploader).
false(default): permissive mode. The invalid value is replaced with its default value, and a warning is emitted in the console.true: strict mode. The SDK stops running and displays the errorSettingsError(codeSDK_137).
Additional information
Not propagated to Selphi/SelphID: this value only controls validation of facephi-sdk-provider itself (and of Video Provider and File Uploader). The facephi-selphi-widget and facephi-selphid-widget do not inherit it: to control their validation, you must set settingsStrictness directly on each of them.
Example
Last updated