Skip to main content

initSecureFields

function initSecureFields(payload): Promise<VaultSDKAdapter>;

Initializes the Secure Fields SDK with the provided tenant ID and configuration.

Parameters

ParameterTypeDescription
payload{ tenantId: string; config: VaultSDKAdapterConfig; }An object containing the tenant ID and configuration for the SDK.
payload.tenantIdstring-
payload.configVaultSDKAdapterConfig-

Returns

Promise<VaultSDKAdapter>

A promise that resolves to an instance of the SDK identified for the tenantId.