← 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
| Name | Type | Description |
authenticatorId | AuthenticatorId | |
credentialId | string | |
Returns
| Name | Type | Description |
credential | Credential | |
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"}