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

SDK-1561 Fix issue with Biometrics registration #216

Merged
merged 2 commits into from
Apr 3, 2024

Conversation

jhaven-stytch
Copy link
Contributor

kSecAttrAccessible and kSecAttrAccessControl are mutually exclusive. The first attribute is used to make a keychain item available after the first unlock (which we use so session tokens are available during fetches when the app is backgrounded) and the second one we use to specify that something can only be accessed with a biometric. Seems obvious in hindsight that they wouldn't work together!

Linear Ticket: SDK-1561

Changes:

  1. If both kSecAttrAccessible and kSecAttrAccessControl are requested for the same keychain item, disregard the kSecAttrAccessible attribute, preferring kSecAttrAccessControl

Notes:

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

@jhaven-stytch jhaven-stytch merged commit 0f2c133 into main Apr 3, 2024
7 checks passed
@jhaven-stytch jhaven-stytch deleted the jordan/SDK-1561-iOS-biometrics-registration-bug branch April 3, 2024 00:12
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