CEBS WorldwideID SecureBY CEBS WORLDWIDE
DEVELOPER GUIDE

Events and error handling

Give users an actionable next step and keep diagnostics free of identity data.

A laptop connects modular browser components into a document capture workflow.
Connect capture, processing and application review with a clear lifecycle.

Workflow events

EventRecommended interface response
camera-readyShow the requested side and alignment guide.
readability-check-startedExplain that the captured image is being checked.
front-capturedPause capture and offer Scan back after the first side is read.
waiting-for-flipWait for the explicit handoff; do not imply the second side is finished.
back-capturedShow completion progress and prepare review.
quality-warningOffer concise lighting, steadiness or positioning guidance.
recognition-feedbackExplain that the required information needs another clear capture.

Camera errors

CodeAction
CAMERA_HTTPS_REQUIREDUse HTTPS, or localhost for local development.
CAMERA_DENIEDAsk the user to enable camera permission in browser settings and retry.
CAMERA_UNAVAILABLECheck that a camera exists and another application is not holding it.
CAMERA_INTERRUPTEDRelease the old stream and offer an explicit restart.
CAMERA_CAPTURE_TIMEOUTOffer another capture with better positioning and lighting.

Runtime errors

CodeAction
SDK_DEVICE_UNSUPPORTEDCheck browser capabilities; offer another supported device.
SDK_ASSET_INTEGRITYVerify the complete versioned deployment. Do not bypass integrity checks.
SDK_ASSET_UNAVAILABLECheck asset paths, HTTPS access and server responses.
OCR_TIMEOUTOffer a bounded retry; inspect device load and runtime configuration.
SDK_CANCELLEDTreat cancellation of an obsolete run as expected cleanup.
SDK_PROCESSING_FAILEDShow a safe retry message and record sanitized diagnostic metadata only.

Safe observability

Record the SDK version, event code, side, bounded elapsed time and browser family when needed for diagnosis. Never record document images, extracted personal information, passwords, session cookies or recovery links in application logs. A technical error does not justify weakening acceptance policy.

Continue your integration