当我在我的Windows PC上的Chrome87上使用上面的代码时,我得到"true“
window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() .then(警报{x=>(‘x is '+x);console.log(x)})
然而,当我运行文档https://webauthndemo.appspot.com/中提到的示例并单击ISUVPAA按钮,并在另一个选项卡中的webauth.js中的第421行设置断点时,单步执行将返回"false“。
我一定是在做一些愚蠢的事情,但我想知道,当访问任何数字键盘(输入PIN)肯定会得到肯定的结果时,你怎么会得到"false“?
发布于 2020-12-02 08:08:26
我计算出,如果您启用了WebAuthn DevTools,您将收到一个"false“响应。我已经勾选了“启用虚拟身份验证器环境”框。奇怪吗?
看起来是到了Virtual Authenticator上的“支持用户验证”复选框。看起来我需要更多的读数才能进行PIN验证。
https://stackoverflow.com/questions/65100213
复制相似问题