TypeScript References
Types
FaceAuthenticatorResponse
FaceAuthenticatorResponse
Field | Type | Description |
---|---|---|
| Shows when face authentication returns a successful capture. | |
| Shows when the face authentication return some error. | |
| boolean | Shows when user cancel the authentication. |
| boolean | Shows when the face authentication is loading. |
FaceAuthenticatorResult
FaceAuthenticatorResult
Field | Type | Description |
---|---|---|
| string | The signed response confirming the captured selfie is genuine. |
FaceAuthenticatorError
FaceAuthenticatorError
Field | Type | Description |
---|---|---|
| string | Detailed error message. |
| string | Enum describing the type of error. |
Field | Type | Description |
---|---|---|
| string | Detailed error message. |
| Enum describing the type of error. |
FaceAuthenticatorSettings
FaceAuthenticatorSettings
Field | Type | Description | Android | iOS |
---|---|---|---|---|
| Used to redirect the SDK to the desired stage in caf api. | ✅ | ✅ | |
| Used to change the SDK filter. | ✅ | ✅ | |
| Used to customize the image URL expiration time. | ✅ | ✅ | |
| boolean | Used to enable screenshots during the SDK scan. Disabled by default for security reasons. | ✅ | ✅ |
| boolean | Used to enable a default loading progressbar during loading events. | ✅ | ✅ |
Enums
Stage
Stage
Field | Description | Android | iOS |
---|---|---|---|
| Beta environment. | ✅ | ✅ |
| Production environment. | ✅ | ✅ |
Filter
Filter
Field | Description | Android | iOS |
---|---|---|---|
| Alternative mask for face liveness. | ✅ | ✅ |
| Normal mask for face liveness. | ✅ | ✅ |
Time
Time
Field | Description | Android | iOS |
---|---|---|---|
| Image url expiration time expires in three hours. | ✅ | ✅ |
| Image url expiration time expires in thirty days. | ✅ | ✅ |
| Image url expiration time expires in thirty minutes. | ❌ | ✅ |
Error
Error
Field | Description | Android | iOS |
---|---|---|---|
| Indicates an unknown issue. | ✅ | ✅ |
| Indicates that camera permission is required for liveness verification. | ✅ | ✅ |
| Indicates a network-related exception occurred during verification. | ✅ | ✅ |
| Indicates a server-side exception occurred during verification. | ✅ | ✅ |
| Indicates an issue with the token used for verification. | ✅ | ✅ |
| Indicates that the device is unsupported for liveness verification. | ✅ | ✅ |
Last updated