Operation Error

class OperationError extends Error {
      code: string;
      message: string;
      data: string;
}

data has a value if return data for an incomplete session is enabled and the user successfully passed the first scan step.

Error Code
Description

UNEXPECTED_ERROR

Generic network error

UNAUTHORIZED

Token expired or invalid

FORBIDDEN

The requested feature is not enabled for your token

SESSION_EXPIRED_OR_NOT_FOUND

Session expired or not found

MEDIA_NOT_ALLOWED_ERROR

Camera not allowed by the user

MEDIA_NOT_FOUND_ERROR

Camera not found

MEDIA_SECURITY_ERROR

The device not allowed access to camera

MEDIA_UNKNOWN_ERROR

This device/platform/browser/version combination is not supported Note: In order for the SDK to access the camera your website needs to use https, see https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia

MEDIA_VIRTUAL_CAMERA_DETECTED

Virtual camera usage has been detected

USER_CANCEL

The user drop the session

INVALID_CONFIG

Invalid configuration

SESSION_INVALIDATED_FACE_RECOGNITION_TOO_MANY_ATTEMPTS

Too many failed facial recognition attempts

Last updated