Closed Whip closed 5 months ago
Do you use the recursiveBase64StrToArrayBuffer
function from my example?
It does not have a response, it takes a reference of a object and modifies it:
const publicKeyCredentialCreationOptions = JSON.parse(data.responseText);
recursiveBase64StrToArrayBuffer(publicKeyCredentialCreationOptions);
navigator.credentials.create(publicKeyCredentialCreationOptions).then(.........
That's it. It worked. Thanks a bunch.
I followed your _test code to create a new registration. The request is sent to the server and I get this response back
But then I get error from
navigator.credentials.create()
- Only exactly one of 'password', 'federated', and 'publicKey' credential types are currently supported.Here's my code:
What is the reason for this? Is my JSON wrong?