TypeScript References
Types
CafSmartAuthResponse
CafSmartAuthResponse
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
CafSmartAuthSuccess
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
CafSmartAuthPending
isAuthorized
boolean
A Boolean value indicating whether the smart auth is genuine.
attestation
string
The signed response confirming the smart auth is genuine.
CafSmartAuthError
CafSmartAuthError
message
string
A message error emitted from SDK.
CafSmartAuthCancel
CafSmartAuthCancel
isCancelled
boolean
Indicates if the smart auth process was canceled.
CafSmartAuthLoading
CafSmartAuthLoading
isLoading
boolean
Indicates if the smart auth is loading.
CafSmartAuthLoaded
CafSmartAuthLoaded
isLoaded
boolean
Indicates if the smart auth is loaded.
CafFaceAuthenticationSettings
CafFaceAuthenticationSettings
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
CafSmartAuthSettings
faceAuthenticationSettings
Used to change the SDK filter.
✅
✅
stage
Used to redirect the SDK to the desired stage in caf api.
✅
✅
CafSmartAuthResponse
CafSmartAuthResponse
success
Shows when smart auth returns a successful capture.
error
Shows when the smart auth returns an error.
cancelled
boolean
Indicates if the user canceled the smart auth process.
pending
Shows when smart auth is pending.
isLoading
boolean
Indicates if the smart auth process is currently loading.
CafSmartAuthBridgeModuleEvents
CafSmartAuthBridgeModuleEvents
CafSmartAuth_Success
Triggered when a successful capture occurs.
CafSmartAuth_Pending
Triggered when the smart auth process is pending.
CafSmartAuth_Error
Triggered when an error occurs.
CafSmartAuth_Cancel
Triggered when the process is canceled.
CafSmartAuth_Loading
Triggered when the process is loading.
CafSmartAuth_Loaded
Triggered when the process has loaded.
Enums
CafStage
CafStage
DEV
Developmemnt environment
✅
✅
BETA
Beta environment.
✅
✅
PROD
Production environment.
✅
✅
CafFilter
CafFilter
NATURAL
Normal mask for face liveness.
✅
✅
LINE_DRAWING
Alternative mask for face liveness.
✅
✅
Last updated
Was this helpful?