Properties
SDK Provider configuration properties.
The Facephi SDK Provider component is configurable through the following properties, offering different behaviors for the possible use cases that may be needed.
Constants
Some constants or enums can be imported from @facephi/sdk-web-wc to make implementations easier.
import { Language, TypeFamily, TrackingSteps } from '@facephi/sdk-web-wc'Configuration example
import { Language, TypeFamily, TrackingSteps } from '@facephi/sdk-web-wc';
<facephi-sdk-provider
apikey={process.env.FACEPHI_SDK_APIKEY}
steps={`${TrackingSteps.start},${TrackingSteps.selphidWidget},${TrackingSteps.selphiWidget},${TrackingSteps.finish}`}
type={TypeFamily.onboarding}
customerId={'user-7f3a9c21'}
language={Language.en}
/>Recommendation: Configure the properties using JavaScript, JSX, or your framework bindings (React, Vue, Angular, etc.). Avoid native HTML configuration with attributes (
nombre-atributo="valor"), since it may lose the typing and formatting expected by the component.
SDK Provider configuration properties
Using the SDK Provider properties, you can configure the behavior and Flow of its components.
Required
apikey: Mandatory SDK Web License provided by Facephi.
Tracking
steps: Order of steps of the Flow registered on the platform.
type: Type of operation registered on the platform (onboarding or authentication).
customerId: Identifier of the user or client for the operation.
operationId: Identifier of the operation on the platform.
tenantId: Tenant identifier for tracking on the platform.
Configuration
autoInitTracking: Starts tracking automatically when the SDK loads.
autoInitWorkflow: Starts the workflow automatically when the SDK loads.
landingApiKey: API key for the Landing service.
proxy: Proxy server URL for SDK requests.
resourcesPath: Custom path to load SDK resources.
qr: Enables mobile capture via QR Code on desktop.
qrExtraParams: Extra parameters in the mobile QR Flow URL.
settingsStrictness: Controls whether an invalid configuration value blocks the SDK or is replaced with its default value.
waitRequest: Waits for data submission requests to finish before advancing in the Flow.
Customization
desktopView: Enables the SDK desktop view.
language: Language of the SDK texts and its components.
theme: Visual theme of the SDK (colors, logo, and typography).
customAnimations: Centralized custom animations for the SDK components.
loadingAnimation: Path to a custom loading animation for the provider.
Development
Last updated