我正在传递这个公钥
const publicKey = {
"challenge": "testchanllengevalue",
"rp": { "name": "test.com" },
"user": {
"id": "12345-543212-12345-54321",
"name": "NAME",
"displayName": "NAME"
},
"attestation": "direct",
"timeout": 20000,
"authenticatorSelection": {
"authenticatorAttachment": "platform",
"requireResidentKey": false,
"userVerification": "required"
},
"pubKeyCredParams": [
{ "type": "public-key", "alg": -7 },
{ "type": "public-key", "alg": -257 }
]
}
到
navigator.credentials.create({ 'publicKey': publicKey })
超时在桌面上工作正常并停止请求但在移动设备上指纹或面部识别请求永远不会超时。
我在这里遗漏了一些东西还是他们为移动设备做这件事的另一种方式