Closed Thotsuya closed 7 months ago
That's kind of weird since if there is an exception, the cause should be printed on the console for further debugging.
Did you try to use startRegistration(attestationOptions)
directly and check where is the error?
That's kind of weird since if there is an exception, the cause should be printed on the console for further debugging.
Did you try to use
startRegistration(attestationOptions)
directly and check where is the error?
After doing some research, the error seems to be because the passkey was already registered. After deleting the passkey from the database and icloud keychain it seems to work just fine
the passkey was already registered
Supposedly you can push an attestation options saying you don't want duplicates on the device by just pushing the credentials registered for the user. Supposedly the authenticator would return an UI error saying there is already a credential registered.
Bundler & Interpreter
Vite 5.2.0 - Node 21.6.2
Browser & OS
Safari 17.4.1 - MacOs Ventura 13.6.6
Have you done this?
Expectation
When attesting I get the error AttestationCancelled: The credentials creation was not completed. I should be able to complete it, as I receive the attest options from the server
Description
I get the credentials creation prompt but then I get the error AttestationCancelled: The credentials creation was not completed.
Looking through the package code, the error seems to be here:
Debugging, I get no cause in console, but I do get the attestation options
Reproduction
Stack trace & logs
No response