TypeScript References

Types

FaceAuthenticatorResponse

FieldTypeDescription

result

Shows when face authentication returns a successful capture.

error

Shows when the face authentication return some error.

cancelled

boolean

Shows when user cancel the authentication.

isLoading

boolean

Shows when the face authentication is loading.

FaceAuthenticatorResult

FieldTypeDescription

signedResponse

string

The signed response confirming the captured selfie is genuine.

FaceAuthenticatorError

FieldTypeDescription

description

string

Detailed error message.

errorType

string

Enum describing the type of error.

FieldTypeDescription

message

string

Detailed error message.

error

Enum describing the type of error.

FaceAuthenticatorSettings

FieldTypeDescriptionAndroidiOS

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.

Enums

Stage

FieldDescriptionAndroidiOS

BETA

Beta environment.

PROD

Production environment.

Filter

FieldDescriptionAndroidiOS

LINE_DRAWING

Alternative mask for face liveness.

NATURAL

Normal mask for face liveness.

Time

FieldDescriptionAndroidiOS

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.

Error

FieldDescriptionAndroidiOS

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.

Last updated

Logo

2023 © Caf. - All rights reserved