# WebauthnCredential

The WebauthnCredential type of the TypeScript SDK, which securityKeys.finishRegistration and securityKeys.list take or answer.

```ts
type WebauthnCredential = {
  createdAt: number
  id: string
  lastUsedAt: number | null
  name: string | null
  rpId: string
  transports: string[] | null
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `createdAt` | `number` | Enrollment timestamp in epoch seconds |
| `id` | `string` | Unique WebAuthn credential ULID |
| `lastUsedAt` | `number` \| `null` | Timestamp when key was last used for authentication, or null |
| `name` | `string` \| `null` | User-assigned name for the security key or passkey |
| `rpId` | `string` | Relying party ID (hostname) the key is bound to |
| `transports` | `string[]` \| `null` | Supported authenticator transports (usb, nfc, ble, internal) |

## Used by

| Method | What it does |
| --- | --- |
| [`securityKeys.finishRegistration`](/docs/sdks/typescript/security-keys/finish-registration) | Finish WebAuthn security key registration |
| [`securityKeys.list`](/docs/sdks/typescript/security-keys/list) | List enrolled WebAuthn security keys |
