TypeScript References

Types

CafSmartAuthResponse

Field
Type
Description

success

Shows when smart auth returns a successful capture.

error

string

Shows when the smart auth return some error.

cancelled

boolean

Shows when user cancel the smart auth.

pending

Shows when smart auth is pending.

isLoading

boolean

Shows when the smart auth is loading.

CafSmartAuthSuccess

Field
Type
Description

isAuthorized

boolean

A Boolean value indicating whether the smart auth is genuine.

attemptId

string

The ID of the face liveness verification attempt.

attestation

string

The signed response confirming the smart auth is genuine.

CafSmartAuthPending

Field
Type
Description

isAuthorized

boolean

A Boolean value indicating whether the smart auth is genuine.

attestation

string

The signed response confirming the smart auth is genuine.

CafFaceAuthenticationSettings

Field
Type
Description
Android
iOS

filter

Used to change the SDK filter.

enableScreenCapture

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.

CafSmartAuthSettings

Field
Type
Description
Android
iOS

faceAuthenticationSettings

Used to change the SDK filter.

stage

Used to redirect the SDK to the desired stage in caf api.

Enums

CafStage

Field
Description
Android
iOS

DEV

Developmemnt environment

BETA

Beta environment.

PROD

Production environment.

CafFilter

Field
Description
Android
iOS

NATURAL

Normal mask for face liveness.

LINE_DRAWING

Alternative mask for face liveness.

Last updated

Logo

2023 © Caf. - All rights reserved