Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.quepass.com/llms.txt

Use this file to discover all available pages before exploring further.

Use Quepass.capture() to start the verification flow based on the required captureConfiguration ("face", "document", or "document", "face"). Configure the desired capture type, handle the SDK response inside the onSuccess callback, and manage navigation or errors using onBack and onFail.

Code

// DOCUMENT ONLY
Quepass.capture({
  captureConfiguration: ["document"],
  onSuccess: (result) => {
    const base64Image = result.data.base64;
  },
  onBack: () => navigate(-1),
  onFail: (error) => console.error(error)
});

// FACE ONLY
Quepass.capture({
  captureConfiguration: ["face"],
  onSuccess: (result) => {
    const base64Image = result.data.base64;
  },
  onBack: () => navigate(-1),
  onFail: (error) => console.error(error)
});

// DOCUMENT + FACE
Quepass.capture({
  captureConfiguration: ["document", "face"],
  onSuccess: (result) => {
    const docImage = result.data.doc_base64;
    const faceImage = result.data.face_base64;
  },
  onBack: () => navigate(-1),
  onFail: (error) => console.error(error)
});

ConfigurationTypical Use
[“document”]Document-only capture. Returns Base64-encoded document image in `data.base64`.
[“face”]Face-only capture. Returns Base64-encoded face image in `data.base64`.
[“document”, “face”]Captures document and face images. Returns `data.doc_base64` (document) and `data.face_base64` (face).