For the complete documentation index, see llms.txt. This page is also available as Markdown.

Result Reference

CafFaceLivenessLiteResult – Success Event

Field
Description

signedResponse

Opaque JWT issued with the liveness session. Forward it to your backend; the SDK does not return isAlive or images.

From 3.1.0, the signedResponse is issued when the liveness session is created and handed to your delegate the moment the capture completes — there is no post-capture wait. Use it with your backend to obtain the final liveness outcome, as described in Backend Setup; the SDK does not poll for it.

CafErrorType – Error Handling

The SDK reports execution errors via didFinishWithError(type:description:). Only the error types below are returned by CafFaceLivenessLite. For when each one is expected and how to guide the user, see Error Handling:

CafErrorType is shared with other Certta SDKs and also declares imageNotFoundException, tooManyRequestsException, permissionException, libraryException, unknownException, cameraException, certificateException, faceAuthentication and livenessException. CafFaceLivenessLite never returns them. If you switch over CafErrorType, add a default case rather than handling each of them.

CafFailureType – Failure References

Available feedback codes returned via didFinishWithFailure(type:description:signedResponse:). The type is the most likely reason for the failure, and any code the SDK does not recognize is returned as unknown. description carries the localized message for that reason, and signedResponse is always present — it is the same JWT issued with the session, so forward it to your backend as you would on success:

Enum value
Localized description (English)

unknown

Try again

tooMuchMovement (legacy)

Keep still

tooBright (legacy)

Move somewhere darker

tooDark (legacy)

Move somewhere brighter

misalignedFace (legacy)

Keep your face in the oval

faceTooFar (legacy)

Move your face closer to the screen

faceTooClose (legacy)

Move your face farther from the screen

sunglasses (legacy)

Remove sunglasses

systemError

System Error

rejected

Transaction could not be completed

faceNotFound

Align your face in the oval and then try to keep still

obscuredFace

Make sure your whole face is visible and remove any accessories that might cover your face

timeout

System timeout

eyewear

Remove your eyewear

multipleFaces

Ensure only one person is visible

eyesClosed

Make sure your eyes are open

userNotFound

Transaction could not be completed

lightingIssues

Make sure your face is well lit and free from glare

framesBlurry

Align your face in the oval and then try to keep still

deviceIssue

Try a different device

motionIssue

Align your face in the oval and then try to keep still

backgroundIssue

Move to a different location with a neutral background

deviceRestart

Please restart your device and try again

processingFault

Please try again

Values marked as legacy are kept for compatibility, but the current versions no longer return them. See Legacy Types for the current equivalent of each one.

The description carries the localized text of the liveness engine for that reason. Do not show it as is: map the type to the recommended message in Failure Reasons and User Guidance, which was written to guide the next attempt without revealing what was detected.

Next step

Forward the signedResponse to your backend, which validates it and retrieves the result: Backend Setup.

Last updated