Kind: Function
Source: atloria-monorepo/apps/web/src/app/p/[slugId]/lib/readerFetch.ts
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
tsasync function readerFetch(path: string, opts: ReaderFetchOpts): Promise<Response>
Parameters
| Name | Type |
|---|---|
path | string |
opts | ReaderFetchOpts |
Returns: Promise<Response>
Was this page helpful?