Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Conversation

@msfjarvis
Copy link
Member

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates

📜 Description

Refactors BiometricAuthenticator to explicitly handle all error codes from BiometricPrompt, adds an explicit
Retry type to BiometricAuthenticator.Result, and downgrades authentication failures to Retry rather than Failed.

Fixes #1626

💡 Motivation and Context

A failure in biometric authentication is not an irrecoverable state so treating it as one has the potential to create confusing UX, such as in #1626 where the prompt is closed when an incorrect fingerprint is used.

💚 How did you test it?

Verified incorrect fingerprints do not cause the authentication prompt to get dismissed immediately

📝 Checklist

  • I formatted the code ./gradlew spotlessApply
  • I reviewed submitted code
  • I added a CHANGELOG entry if applicable

@msfjarvis msfjarvis requested a review from a team as a code owner December 29, 2021 08:38
@msfjarvis msfjarvis added this to the v2.0.0 milestone Dec 29, 2021
@msfjarvis msfjarvis added A-UI-UX Area: General UI/UX concerns C-bug Category: This is a bug C-technical-debt Category: This makes the code harder to read and modify, but has no impact on end users E-medium Effort: This requires a fair amount of work P-medium Priority: medium S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Dec 29, 2021
@msfjarvis msfjarvis force-pushed the hs/2021-12-29/biometric-retry branch from 84aea80 to d21a22b Compare December 29, 2021 09:15
@msfjarvis msfjarvis force-pushed the hs/2021-12-29/biometric-retry branch from d21a22b to 9216a07 Compare December 29, 2021 10:10
@msfjarvis msfjarvis requested a review from Skrilltrax December 29, 2021 10:29
@msfjarvis msfjarvis enabled auto-merge (squash) December 29, 2021 10:34
@msfjarvis msfjarvis removed the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Dec 29, 2021
@msfjarvis msfjarvis merged commit 4c94137 into develop Dec 29, 2021
@msfjarvis msfjarvis deleted the hs/2021-12-29/biometric-retry branch December 29, 2021 10:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A-UI-UX Area: General UI/UX concerns C-bug Category: This is a bug C-technical-debt Category: This makes the code harder to read and modify, but has no impact on end users E-medium Effort: This requires a fair amount of work P-medium Priority: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Password authentication as fallback to biometric when launching the app

3 participants