# auth

**Kind:** Function

**Source:** [`src/utils/basic-auth.ts`](https://github.com/honojs/hono/blob/main/src/utils/basic-auth.ts#L9)

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

## Signature

```ts
function auth(req: Request)
```

## Parameters

| Name | Type |
|---|---|
| `req` | `Request` |

## Used by

1 reference from 1 file. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Imported by (1)

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