# WebAuthnCredential

> RegistrationResponseJSON or AuthenticationResponseJSON from PublicKeyCredential.toJSON().

`RegistrationResponseJSON` or `AuthenticationResponseJSON` from `PublicKeyCredential.toJSON()`.

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `id` * | string |  |
| `rawId` * | string |  |
| `type` * | `public-key` |  |
| `response` * | object |  |
| `authenticatorAttachment` | string or null |  |
| `clientExtensionResults` | object |  |

\* always present

## Example

```json
{
  "id": "string",
  "rawId": "string",
  "type": "public-key",
  "response": {},
  "authenticatorAttachment": "string",
  "clientExtensionResults": {}
}
```
