← Back to WebAuthn domain

WebAuthn.getCredential

Returns a single credential stored in the given virtual authenticator that matches the credential ID.

Domain: WebAuthn experimental

Parameters

NameTypeDescription
authenticatorIdAuthenticatorId
credentialIdstring

Returns

NameTypeDescription
credentialCredential

Example Request

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

Example Response

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

Usage in Node.js

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