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

Selphi Result

The possible fields returned in the result are as follows:

finishStatus

Returns a number from the operation result. Possible values:

  • 1: The operation was successful.

  • 2: An error has occurred, which will be indicated in the string errorType and, optionally, an extra information message will be shown in the property errorMessage.

finishStatusDescription

Returns a description of the operation result. Possible values:

  • STATUS_OK: The operation was successful.

  • STATUS_ERROR: An error has occurred, which will be indicated in the string errorType(errorDiagnostic for Flutter) and, optionally, an extra information message will be shown in the property errorMessage.

errorType or errorDiagnostic(only for Flutter)

Indicates why the component failed. Possible values:

In iOS, the errorType received from the SDK in a Timeout may be SDK_TIMEOUT or SELPHI_TIMEOUT(LivenessDiagnostic?). There is no case in iOS TIMEOUT without prefix. The case SELPHI_TIMEOUT preserves, when available, the Liveness diagnosis (LivenessDiagnostic?). In hybrid integrations, the internal name of the Swift enum should not be used as the response contract.

To serialize the error in iOS, use:

errorType.toString(addComponentPrefix: "SPI_")

This returns SPI_TIMEOUT both for SDK_TIMEOUT and for SELPHI_TIMEOUT. In Android, the equivalent of the error list is TIMEOUT (without prefix).

In an iOS Timeout:

  • finishStatus es STATUS_ERROR

  • data es nil (no templateRaw, bestImage, etc.)

  • The extra Liveness information, if it exists, goes in the associated value of SELPHI_TIMEOUT, not in data

Selphi - Error List

errorMessage

Indicates an additional error message. It is an optional value.

templateRaw

Returns the raw template generated after the extraction process. Valid for the process of Matching.

template

Returns the template generated after the extraction process. Valid for the process of Matching.

bestImage

Returns the best image extracted from the authentication process. This image has the original size extracted from the camera. Valid for the process of liveness.

bestImageCropped

Returns a cropped image centered on the user's face. This image is obtained from the bestImage.

logImages

List of the 5 best captured images. It is returned if the "logImages" flag is enabled in the configuration.

bestImageTokenized

Returns the best image extracted in the encrypted process. Valid for the process of liveness.

IAD

Returns a Token/hash that must be used to call a validation service. Adds a layer of defense against sophisticated attacks that use digital injection or advanced spoofing.

Last updated