title: How to use webauthn with iOS and react?
body: <pre><code>if (navigator.credentials &amp;&amp; window.PublicKeyCredential) {
        const available = await window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable();
        if (available) {
          const newCredentialInfo = await navigator.credentials.create(options);
          var response = newCredentialInfo.response;
  
          var clientExtensionsResults = newCredentialInfo.getClientExtensionResults();
          alert(JSON.stringify(response))
          alert(JSON.stringify(clientExtensionsResults));
        }
        else {
          alert(&quot;Unsupported&quot;);
        }
      }
  </code></pre>
  <p>gives me to use private key only (usb or smthg. But if I use this <code>options.publicKey</code> with JavaScript and html, everything is ok. It offers me to use FaveID to auth, but response is empty.</p>
  <p>My options are</p>
  <pre><code>
  {&quot;rp&quot;:{&quot;id&quot;:&quot;https://im-faceid.netlify.app&quot;,&quot;name&quot;:&quot;netlify.app&quot;},&quot;user&quot;:{&quot;id&quot;:{&quot;0&quot;:97,&quot;1&quot;:87,&quot;2&quot;:120,&quot;3&quot;:53,&quot;4&quot;:89,&quot;5&quot;:87,&quot;6&quot;:49,&quot;7&quot;:118,&quot;8&quot;:99,&quot;9&quot;:109,&quot;10&quot;:82,&quot;11&quot;:104,&quot;12&quot;:99,&quot;13&quot;:50,&quot;14&quot;:57,&quot;15&quot;:50},&quot;name&quot;:&quot;test&quot;,&quot;displayName&quot;:&quot;Test User&quot;},&quot;challenge&quot;:{&quot;0&quot;:79,&quot;1&quot;:72,&quot;2&quot;:78,&quot;3&quot;:122,&quot;4&quot;:101,&quot;5&quot;:71,&quot;6&quot;:86,&quot;7&quot;:111},&quot;pubKeyCredParams&quot;:[{&quot;type&quot;:&quot;public-key&quot;,&quot;alg&quot;:-7}],&quot;authenticatorSelection&quot;:{&quot;authenticatorAttachment&quot;:&quot;platform&quot;,&quot;requireResidentKey&quot;:false,&quot;userVerification&quot;:&quot;required&quot;},&quot;attestation&quot;:&quot;none&quot;,&quot;timeout&quot;:15000}
  
  </code></pre>