TypeScript References
Last updated
Last updated
2023 © Caf. - All rights reserved
Field | Description | Android | iOS |
---|---|---|---|
Field | Description | Android | iOS |
---|---|---|---|
Field | Description | Android | iOS |
---|---|---|---|
Field | Description | Android | iOS |
---|---|---|---|
result
Shows when face liveness returns a successful capture.
error
Shows when the face livenes return some error.
cancelled
boolean
Shows when user cancel the liveness.
isLoading
boolean
Shows when the face liveness is loading.
signedResponse
string
The signed response confirming the captured selfie is genuine.
description
string
Detailed error message.
errorType
string
Enum describing the type of error.
message
string
Detailed error message.
error
Enum describing the type of error.
cafStage
Used to redirect the SDK to the desired stage in caf api.
✅
✅
filter
Used to change the SDK filter.
✅
✅
imageUrlExpirationTime
Used to customize the image URL expiration time.
✅
✅
enableScreenshots
boolean
Used to enable screenshots during the SDK scan. Disabled by default for security reasons.
✅
✅
loadingScreen
boolean
Used to enable a default loading progressbar during loading events.
✅
✅
certificates
string[]
Used to set pinned certificates for reverse proxy implementation.
✅
❌
faceLivenessBaseUrl
string
Used to enable the use of reverse proxy to execute face liveness. If used, the certificates must be set with the setCertificates method.
✅
❌
authenticationBaseUrl
string
Used to enable the use of reverse proxy to execute SDK's authentications.
✅
❌
BETA
Beta environment.
✅
✅
PROD
Production environment.
✅
✅
LINE_DRAWING
Alternative mask for face liveness.
✅
✅
NATURAL
Normal mask for face liveness.
✅
✅
THREE_HOURS
Image url expiration time expires in three hours.
✅
✅
THIRTY_DAYS
Image url expiration time expires in thirty days.
✅
✅
THIRTY_MIN
Image url expiration time expires in thirty minutes.
❌
✅
UnknownException
Indicates an unknown issue.
✅
✅
CameraPermission
Indicates that camera permission is required for liveness verification.
✅
✅
NetworkException
Indicates a network-related exception occurred during verification.
✅
✅
ServerException
Indicates a server-side exception occurred during verification.
✅
✅
TokenException
Indicates an issue with the token used for verification.
✅
✅
UnsupportedDevice
Indicates that the device is unsupported for liveness verification.
✅
✅
CertificateException
Indicates an exception occurred on certificate pinning.
✅
❌