webauthn 请求超时在移动设备上不起作用

问题描述 投票:0回答:0

我正在传递这个公钥

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 })

超时在桌面上工作正常并停止请求但在移动设备上指纹或面部识别请求永远不会超时。

我在这里遗漏了一些东西还是他们为移动设备做这件事的另一种方式

javascript browser navigator webauthn
© www.soinside.com 2019 - 2024. All rights reserved.