@richard.fadiora/liveness-detection 2.0.1 → 2.0.3

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
@@ -35,7 +35,7 @@ When the user clicks the **"Start Challenge"** button:
35
35
  - `Turn_Head`
36
36
  - `Thumbs_Up`
37
37
 
38
- - A **60-second timer** starts immediately.
38
+ - A timer starts immediately. If you do not pass the **duration** property, it will default to 60 seconds.
39
39
 
40
40
  If the timer expires before completion:
41
41
  - The session is terminated
@@ -93,13 +93,14 @@ onComplete(false)
93
93
  |------------|----------------------------|----------|-------------|
94
94
  | `apiUrl` | `string` | Yes | Backend endpoint used for liveness verification |
95
95
  | `onComplete` | `(result: boolean) => void` | Yes | Callback fired after verification completes |
96
+ | `duration` | `int` | No | Used for setting maximum time for the challenges to be completed |
96
97
 
97
98
  ---
98
99
 
99
100
  ## 🧩 Usage Example
100
101
 
101
102
  ```jsx
102
- import { LivenessSDK } from "./LivenessSDK";
103
+ import { LivenessSDK } from "@richard.fadiora/liveness-detection";
103
104
 
104
105
  function App() {
105
106
  return (
@@ -123,7 +124,7 @@ export default App;
123
124
 
124
125
  ## ⏳ Timeout Rules
125
126
 
126
- - Maximum session duration: **60 seconds**
127
+ - Maximum session duration: Set in the **duration** property, else **60 seconds**
127
128
  - If time expires:
128
129
  - The challenge stops immediately
129
130
  - The verification state resets