# WebAuthn user mismatch

The KeenAuth APIs return this problem type with HTTP status 401 (Unauthorized).

## Problem type

| Field | Value |
|---|---|
| Type URI | `https://docs.keenauth.com/errors/webauthn_user_mismatch` |
| Code | `webauthn_user_mismatch` |
| HTTP status | 401 Unauthorized |
| Title | WebAuthn user mismatch |

## Meaning

In a discoverable sign-in, the `userHandle` does not match the credential's user. Details appear only in the security log.

## Example response

Example response body. `detail` is a human-readable English description that is not meant for end users; `instance` identifies the request.

```json
{
  "type": "https://docs.keenauth.com/errors/webauthn_user_mismatch",
  "title": "WebAuthn user mismatch",
  "status": 401,
  "code": "webauthn_user_mismatch",
  "detail": "...",
  "instance": "urn:idp:request:<request_id>"
}
```

All error codes: [Error reference](/docs/errors).
