← Back to WebAuthn domain

WebAuthn.addCredential

Adds the credential to the specified authenticator.

Domain: WebAuthn experimental

Parameters

NameTypeDescription
authenticatorIdAuthenticatorId
credentialCredential

Example Request

{
  "id": 1,
  "method": "WebAuthn.addCredential",
  "params": {
    "authenticatorId": "authenticatorId-value",
    "credential": "credential-value"
  }
}

Example Response

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

Usage in Node.js

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