# Function: authenticatePasskey()

```ts
function authenticatePasskey(credentialId?, options?): Promise<PasskeyAuth>;
```

Defined in: [packages/core/src/identity/webauthn.ts:111](https://github.com/leifriksheim/minca/blob/main/core/src/identity/webauthn.ts#L111)

Authenticates with a passkey: this credential, or any of this origin's when omitted

## Parameters

| Parameter | Type |
| ------ | ------ |
| `credentialId?` | `string` |
| `options?` | [`AuthOptions`](https://minca.dev/api/core/interfaces/AuthOptions.md) |

## Returns

`Promise`\<[`PasskeyAuth`](https://minca.dev/api/core/interfaces/PasskeyAuth.md)\>
