react-native-biometric-verifier 0.0.60 → 0.0.62
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/package.json
CHANGED
|
@@ -39,7 +39,7 @@ export const useFaceDetectionFrameProcessor = ({
|
|
|
39
39
|
isLoading = false,
|
|
40
40
|
isActive = true,
|
|
41
41
|
livenessLevel,
|
|
42
|
-
antispooflevel =
|
|
42
|
+
antispooflevel = 6,
|
|
43
43
|
}) => {
|
|
44
44
|
const { detectFaces } = useFaceDetector({
|
|
45
45
|
performanceMode: 'fast',
|
|
@@ -363,10 +363,9 @@ export const useFaceDetectionFrameProcessor = ({
|
|
|
363
363
|
if (antiSpoofResult != null) {
|
|
364
364
|
state.antiSpoof.lastResult = antiSpoofResult;
|
|
365
365
|
|
|
366
|
-
const isLive = antiSpoofResult.isLive === true;
|
|
367
366
|
const confidence = antiSpoofResult.combinedScore || antiSpoofResult.neuralNetworkScore || 0;
|
|
368
367
|
|
|
369
|
-
if (
|
|
368
|
+
if (confidence > antispooflevel) {
|
|
370
369
|
state.antiSpoof.consecutiveLiveFrames = Math.min(
|
|
371
370
|
REQUIRED_CONSECUTIVE_LIVE_FRAMES,
|
|
372
371
|
state.antiSpoof.consecutiveLiveFrames + 1
|
package/src/index.js
CHANGED
|
@@ -264,7 +264,7 @@ const BiometricModal = React.memo(
|
|
|
264
264
|
body
|
|
265
265
|
);
|
|
266
266
|
|
|
267
|
-
if (response?.httpstatus === 200) {
|
|
267
|
+
if (response?.httpstatus === 200 && response.data?.data) {
|
|
268
268
|
responseRef.current = {
|
|
269
269
|
...responseRef.current,
|
|
270
270
|
faceRecognition: response.data?.data || null,
|