← Back to WebAuthn domain

WebAuthn.setAutomaticPresenceSimulation

Sets whether tests of user presence will succeed immediately (if true) or fail to resolve (if false) for an authenticator. The default is true.

Domain: WebAuthn experimental

Parameters

NameTypeDescription
authenticatorIdAuthenticatorId
enabledboolean

Example Request

{
  "id": 1,
  "method": "WebAuthn.setAutomaticPresenceSimulation",
  "params": {
    "authenticatorId": "authenticatorId-value",
    "enabled": true
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('WebAuthn.setAutomaticPresenceSimulation', {"authenticatorId": "authenticatorId-value", "enabled": true});
console.log(result);