# timingSafeEqual

**Kind:** Function

**Source:** [`src/utils/buffer.ts`](https://github.com/honojs/hono/blob/main/src/utils/buffer.ts#L76)

**Part of:** [Utils](subsystem-src-utils)

## Signature

```ts
async function timingSafeEqual(a, b, hashFunction: Function): Promise<boolean>
```

## Parameters

| Name | Type |
|---|---|
| `a` | `any` |
| `b` | `any` |
| `hashFunction` | `Function` |

**Returns:** `Promise<boolean>`

## Used by

2 references from 2 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Imported by (2)

- `handler` — `src/middleware/basic-auth/index.ts`:118
- `bearerAuth` — `src/middleware/bearer-auth/index.ts`:104
