Skip to content

Add StytchBiometrics Demo App - Fix Biometrics Funk#371

Merged
nidal-stytch merged 2 commits intomainfrom
Biometrics
Jan 9, 2025
Merged

Add StytchBiometrics Demo App - Fix Biometrics Funk#371
nidal-stytch merged 2 commits intomainfrom
Biometrics

Conversation

@nidal-stytch
Copy link
Contributor

@nidal-stytch nidal-stytch commented Jan 6, 2025

iOS: repeated faceID prompts after upgrading to 0.52.0

Changes:

  1. The core change here is that we added an additional keychain item for biometrics called .biometricKeyRegistration.
  2. .biometricKeyRegistration holds the biometric registration id, which is not relevant for authentication but will help us check for orphaned registrations or if registrations exist in the first place, its how we manage registrations in the api.
  3. The .privateKeyRegistration should only ever be read during biometric registration now as reading it will show the face id prompt and we were doing that way too often.
  4. Additionally I added a biometrics sample app to more easily test the biometric flow.

Checklist:

  • I have verified that this change works in the relevant demo app, or N/A
  • I have added or updated any tests relevant to this change, or N/A
  • I have updated any relevant README files for this change, or N/A

@nidal-stytch nidal-stytch force-pushed the Biometrics branch 4 times, most recently from 911c139 to 82e6388 Compare January 7, 2025 14:58
@nidal-stytch nidal-stytch force-pushed the Biometrics branch 8 times, most recently from 4144224 to ab30e5b Compare January 8, 2025 16:48
@nidal-stytch nidal-stytch marked this pull request as ready for review January 8, 2025 16:49
@nidal-stytch nidal-stytch requested a review from a team as a code owner January 8, 2025 16:49
@nidal-stytch nidal-stytch changed the title Add StytchBiometrics Demo App Add StytchBiometrics Demo App - Fix Biometrics Funk Jan 8, 2025
@nidal-stytch nidal-stytch force-pushed the Biometrics branch 10 times, most recently from 5eb5a10 to 516867f Compare January 8, 2025 21:01
@nidal-stytch nidal-stytch enabled auto-merge January 8, 2025 21:54
}

#if !os(tvOS) && !os(watchOS)
/// Indicates if biometrics are available
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove this? It seems somewhat important to know if the user even can register biometrics, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok fair point, I added it back in. I just didn't see it being used internally and got a little hasty in deleting it, good catch.

@nidal-stytch nidal-stytch merged commit c9e250e into main Jan 9, 2025
7 checks passed
@nidal-stytch nidal-stytch deleted the Biometrics branch January 9, 2025 15:36
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