My team is currently working on implementing passkeys and wanted to better understand the various errors that can be thrown both when creating and logging in with a passkey. To my understanding, after invoking the passkey request via the authorization controller, if an error occurs, the authorizationController(controller:didCompleteWithError:) delegate method will be called. The error will be a ASAuthorizationError, and there are a few codes listed here. The docs are a bit vague about when each of these errors can occur and what the difference is between them, so I am posting this in the hopes of gaining more clarity. The errors for which we'd like some clarification are:
failed
This is pretty generic, how might this code be different than the other failure reasons, and what could cause it to be thrown either for creation or for authorization?
invalidResponse
Does this mean that the system received an invalid response from the Relying Party?
notHandled
What might cause the authorization request not to be handled?
notInteractive
What does it mean for the authorization request to not be interactive? Does this mean that none of the specified credentialIDs are available?
Finally, is it possible for both creation and authorization to throw all of these errors, or are there some that are exclusive?
Any help would be appreciated, thank you.
2
1
1.1k