← Back to WebAuthn domain

WebAuthn.enable

Enable the WebAuthn domain and start intercepting credential storage and retrieval with a virtual authenticator.

Domain: WebAuthn experimental

Parameters

NameTypeDescription
enableUI (optional)booleanWhether to enable the WebAuthn user interface. Enabling the UI is recommended for debugging and demo purposes, as it is closer to the real experience. Disabling the UI is recommended for automated testing. Supported at the embedder's discretion if UI is available. Defaults to false.

Example Request

{
  "id": 1,
  "method": "WebAuthn.enable"
}

Example Response

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

Usage in Node.js

const result = await send('WebAuthn.enable');
console.log(result);