@richard.fadiora/liveness-detection 2.0.3 → 2.1.0
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 +3 -1
- package/dist/index.es.js +1707 -1700
- package/dist/index.umd.js +11 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -82,8 +82,9 @@ onComplete(true)
|
|
|
82
82
|
- The component triggers:
|
|
83
83
|
|
|
84
84
|
```js
|
|
85
|
-
|
|
85
|
+
onError(false)
|
|
86
86
|
```
|
|
87
|
+
This is because the parameters being passed for both completion and Error are the same: success, result, and skinConfidence.
|
|
87
88
|
|
|
88
89
|
---
|
|
89
90
|
|
|
@@ -93,6 +94,7 @@ onComplete(false)
|
|
|
93
94
|
|------------|----------------------------|----------|-------------|
|
|
94
95
|
| `apiUrl` | `string` | Yes | Backend endpoint used for liveness verification |
|
|
95
96
|
| `onComplete` | `(result: boolean) => void` | Yes | Callback fired after verification completes |
|
|
97
|
+
| `onError` | `(result: boolean) => void` | Yes | Callback fired after verification flags error |
|
|
96
98
|
| `duration` | `int` | No | Used for setting maximum time for the challenges to be completed |
|
|
97
99
|
|
|
98
100
|
---
|