尝试在Firefox Nightly下运行可用的webautn规范(https://www.w3.org/TR/webauthn/)(https://github.com/molekilla/webauthn-demo-fork)的演示。
getMakeCredentialsChallenge({
username,
name
})
.then((response) => {
console.log(response);
let publicKey = preformatMakeCredReq(response);
console.log(publicKey);
console.log(publicKey.challenge)
return navigator.credentials.create({publicKey})
})
每当执行到达return语句时,Promise将保持挂起状态几秒钟并最终拒绝,记录[Exception... "Abort" nsresult: "0x80004004 (NS_ERROR_ABORT)" location: "<unknown>" data: no]
或UnknownError: The operation failed for an unknown transient reason
。这两个对象看起来很好有什么理由不解决?