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

feat: allow set desired policy when checking biometric auth availability #3

Merged
merged 3 commits into from
Sep 2, 2024

Conversation

AndriyVasyk
Copy link
Contributor

Title

Motivation

Add ability to specify local authentication policy while checking whether biometric authentication is available on the device

Modifications

  • Add enum containing available policies (LocalAuthenticationPolicy)
  • Add param 'policy' to 'checkBiometricAvailable' function of LocalAuthenticationProviderProtocol
  • Use 'checkBiometricAvailable' with appropriate policies

Result

It is possible to set desired policy when checking biometric auth availability

Copy link

codecov bot commented Sep 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.45%. Comparing base (f0bec04) to head (8ec4278).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #3      +/-   ##
==========================================
+ Coverage   95.21%   95.45%   +0.23%     
==========================================
  Files           4        5       +1     
  Lines         230      242      +12     
==========================================
+ Hits          219      231      +12     
  Misses         11       11              

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

@mcmikius mcmikius merged commit e3144b4 into main Sep 2, 2024
6 checks passed
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