← Back to WebAuthn domain

WebAuthn.getCredentials

Returns all the credentials stored in the given virtual authenticator.

Domain: WebAuthn experimental

Parameters

NameTypeDescription
authenticatorIdAuthenticatorId

Returns

NameTypeDescription
credentialsarray

Example Request

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

Example Response

{
  "id": 1,
  "result": {
    "credentials": []
  }
}

Usage in Node.js

const result = await send('WebAuthn.getCredentials', {"authenticatorId": "authenticatorId-value"});
console.log(result);
// {"credentials": []}