Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

ruisebas
Copy link
Member

@ruisebas ruisebas commented Aug 9, 2024

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)

  • Added new tests to cover change, if needed
  • Build succeeds with all target using Swift Package Manager
  • All unit tests pass
  • Security oriented best practices and standards are followed (e.g. using input sanitization, principle of least privilege, etc)
  • Documentation update for the change if required
  • PR title conforms to conventional commit style
  • If breaking change, documentation/changelog update with migration instructions

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

@ruisebas ruisebas requested review from a team as code owners August 9, 2024 16:01
Copy link

codecov bot commented Aug 9, 2024

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 ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #167   +/-   ##
=======================================
  Coverage   30.44%   30.44%           
=======================================
  Files          57       57           
  Lines        2230     2230           
=======================================
  Hits          679      679           
  Misses       1551     1551           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ruisebas ruisebas merged commit 0b56e1f into main Aug 12, 2024
7 checks passed
@ruisebas ruisebas deleted the ruisebas/viewResignation_error branch August 12, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants