Basic usage
Basic Web SDK integration example.
Component installation
npm install @facephi/sdk-web-wc@latest// main.ts
import '@facephi/sdk-web-wc';
import { defineCustomElements as defineFacephiSDKCustomElements } from '@facephi/sdk-web-wc/loader';
defineFacephiSDKCustomElements(window);Integration and configuration of the SDK Provider
import { Language, TrackingSteps, TypeFamily } from '@facephi/sdk-web-wc';
<section className="facephi-sdk-provider">
<facephi-sdk-provider
apikey={import.meta.env.VITE_LICENSE_KEY}
steps={`${TrackingSteps.start},${TrackingSteps.selphidWidget},${TrackingSteps.selphiWidget},${TrackingSteps.finish}`}
type={TypeFamily.onboarding}
customerId={customerId}
language={Language.en}
/>
</section>Integration and configuration of component Flow
Flow between components
Behavior testing
Last updated