Passkeys calls are error-prone, based on user input.
Despite what would be correct code, the navigator.credentials.create code might throw an error with a Request cancelled by user independently on whether the user accepted or rejected the request.