For the complete documentation index, see llms.txt. This page is also available as Markdown.

Advanced configuration

Advanced Web SDK configuration.

The Facephi SDK Web can be configured in many ways, in addition to having several available features.

Depending on the purpose for which the SDK Web is implemented, it is possible to benefit from some features or others.

Advanced configurations

Some advanced configurations may be:

Preloading SelphID and Selphi resources

Using the methods generateSelphiBrowserCache(apiKey) and generateSelphIDBrowserCache(apiKey) it is possible to download some resources needed for Selphi or SelphID, speeding up component loading.

To do this, we will have to call the method we need before the component is in the DOM. for example when the user is filling out a previous form before starting the Onboarding process.

In this example we download the SelphID resources to speed up the component loading once the time comes.

import { generateSelphIDBrowserCache } from '@facephi/sdk-web-wc';

// Download SelphID resources before the SDK Provider is in the DOM
generateSelphIDBrowserCache(process.env.FACEPHI_SDK_APIKEY);

Last updated