youverify-liveness-web 0.1.24 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -148,7 +148,8 @@ The `onSuccess` and `onFailure` callbacks (if supplied) are passed the following
148
148
  | `data.livenessClip` | String | Video of user performing liveness check |
149
149
  | `data.passed` | Boolean | Indicator on whether liveness check passed or failed |
150
150
  | `data.metadata` | Any | Metadata passed in during initialization |
151
+ | `data.error` | Object | Error object containing error key(`eyes_closed`, `image_capture_failed`, `api_error`) and message (only present in failure cases) |
151
152
 
152
153
  ## Credits
153
154
 
154
- This SDK is developed and maintained solely by [Youverify](https://youverify.co)
155
+ This SDK is developed and maintained solely by [Youverify](https://youverify.co)
package/dist/index.d.ts CHANGED
@@ -13,6 +13,10 @@ declare interface LivenessData {
13
13
  faceImage: string;
14
14
  passed: boolean;
15
15
  metadata?: Metadata;
16
+ error?: {
17
+ key: string;
18
+ message: string;
19
+ };
16
20
  }
17
21
 
18
22
  declare interface LivenessWebSdkProps {