导航器凭据创建方法返回异常

时间:2018-02-06 18:45:26

标签: credential-manager firefox-nightly webauthn

尝试在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。这两个对象看起来很好有什么理由不解决?

0 个答案:

没有答案