Hi, I am trying to add passkeys to my app. According to the sample code, I need to create a passkey and verify it with the server. But what if I make a passkey successfully but fail to finish the server request? The passkey will still be stored in the keychain. Can I delete it programmatically?
Post
Replies
Boosts
Views
Activity
Hi, I'm trying to implement passkey into my app. I am wondering if ASAuthorizationPublicKeyCredentialAssertion.rawAuthenticatorData supports signCount. It seems the value is always 0.
Thank you!
Hi, I am trying to implement passkey in my app and noticed this strange behavior.
How to reproduce (iOS 16.0 beta):
Call ASAuthorizationController.performAutoFillAssistedRequests
Tap a text field to trigger the quick type UI
Tap the key icon, and I will see a modally presented view controller with a list of credentials
Select a passkey, and the view controller will be dismissed
Now the app is frozen, I can not tap the text field or any other buttons
If I switch to another app and then switch back (that is, making the app to background and then active again), the app will resume
In step 4, if I select a password, the app will not freeze. If I dismiss the view controller by swiping down, the app will not freeze. It will only freeze if I select a passkey.
I am testing using a simple view controller with only two text fields, and I am not doing anything special, so I wonder if this is a bug in the framework. Could someone help me to verify it?
Hi, I want to implement passkey in my app. I am wondering if there is a robust way to distinguish between these two situations:
the user cancels the action sheet (ASAuthorizationController)
there are no credentials at all
Both situations give a canceled error. I noticed a localized string in NSError.userInfo explaining the reason in situation 2, but this is not a robust way of distinguishing between them because the behavior can change in the future.
I noticed the behavior of ASAuthorizationController has changed in the lasted beta. When the user only has a password but no passkey, even if I only pass in an ASAuthorizationPublicKeyCredentialAssertionRequest and no ASAuthorizationPasswordRequest, the action sheet will display the password. Is this by design? This has some impact on my implementation. Will this change again in the future?
Hi! I wonder if there is a way to disable the save password action sheet. It seems the action sheet is displayed once the container view controller is dismissed. The reasons that I want to disable the sheet are:
I want to prompt the user to save passwords only after a successful login
I want to use my UI