Skip to content

readerFetch

reference
1 min readUpdated

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

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

Parameters

NameType
pathstring
optsReaderFetchOpts

Returns: Promise<Response>

Was this page helpful?

Download as PDF