# readerFetch

**Kind:** Function

**Source:** [`atloria-monorepo/apps/web/src/app/p/[slugId]/lib/readerFetch.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/web/src/app/p/[slugId]/lib/readerFetch.ts#L57)

Fetch a public reader endpoint with the reader token attached. Throws
ReaderAccessError on a 401 gate response so the caller can show AccessGate;
returns the raw Response otherwise (caller parses).

## Signature

```ts
async function readerFetch(path: string, opts: ReaderFetchOpts): Promise<Response>
```

## Parameters

| Name | Type |
|---|---|
| `path` | `string` |
| `opts` | `ReaderFetchOpts` |

**Returns:** `Promise<Response>`
