← Back to WebAuthn domain

WebAuthn.addVirtualAuthenticator

Creates and adds a virtual authenticator.

Domain: WebAuthn experimental

Parameters

NameTypeDescription
optionsVirtualAuthenticatorOptions

Returns

NameTypeDescription
authenticatorIdAuthenticatorId

Example Request

{
  "id": 1,
  "method": "WebAuthn.addVirtualAuthenticator",
  "params": {
    "options": "options-value"
  }
}

Example Response

{
  "id": 1,
  "result": {
    "authenticatorId": "authenticatorId-value"
  }
}

Usage in Node.js

const result = await send('WebAuthn.addVirtualAuthenticator', {"options": "options-value"});
console.log(result);
// {"authenticatorId": "authenticatorId-value"}