aws-amplify / amplify-ui-swift-liveness

This repository offers a UI component for Amazon Rekognition Face Liveness, enabling developers to ensure that only authentic users, and not bad actors using spoofs, can access their services.
https://ui.docs.amplify.aws/swift/connected-components/liveness
Apache License 2.0
9 stars 20 forks source link

fix: Returning .userCancelled when the app goes to the background during a Liveness check. #167

Closed ruisebas closed 1 month ago

ruisebas commented 1 month ago

Issue #, if available:

Description of changes: This PR maps the internal LivenessError.viewResignation error to the public FaceLivenessDetectionError.userCancelled, so that we report that one when the user sends the app to the background during a liveness check.

Check points: (check or cross out if not relevant)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 30.44%. Comparing base (f13bf5e) to head (7dff2b4). Report is 3 commits behind head on main.

Files Patch % Lines
...ess/Views/Liveness/FaceLivenessDetectionView.swift 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #167 +/- ## ======================================= Coverage 30.44% 30.44% ======================================= Files 57 57 Lines 2230 2230 ======================================= Hits 679 679 Misses 1551 1551 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.