# PasskeyResource

An interface that describes a passkey associated with a user response.

## Properties

| Name         | Type                 | Description                                 |
| ------------ | -------------------- | ------------------------------------------- |
| id           | string               | The unique identifier of the passkey.       |
| name         | string               | The passkey's name.                         |
| verification | VerificationResource | The verification details for the passkey.   |
| createdAt    | Date                 | The date when the passkey was created.      |
| updatedAt    | Date                 | The date when the passkey was last updated. |
| lastUsedAt   | Date | null         | The date when the passkey was last used.    |

## Methods

### `update()`

Updates the name of the associated passkey for the signed-in user.

```ts
function update(params: { name: string }): Promise<PasskeyResource>
```

For an example of how to use these methods, see the [Passkeys custom flows documentation](https://clerk.com/docs/guides/development/custom-flows/authentication/passkeys.md?sdk=js-frontend#rename-user-passkeys).

### `delete()`

Deletes the associated passkey for the signed-in user.

```ts
function delete(): Promise<DeletedObjectResource>
```

Learn more:

- [DeletedObjectResource](https://clerk.com/docs/js-frontend/reference/types/deleted-object-resource.md)

For an example of how to use these methods, see the [Passkeys custom flows documentation](https://clerk.com/docs/guides/development/custom-flows/authentication/passkeys.md?sdk=js-frontend#delete-user-passkeys).

---

## Sitemap

[Overview of all docs pages](https://clerk.com/docs/llms.txt)
