# DocsAccessRequired

**Kind:** Interface

**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#L20)

WEB-4: on hosts where cookie auth is enabled (isCookieAuthHost), the reader talks to
the same-origin proxy (/reader-api/*), which attaches the reader token from an httpOnly
cookie server-side — the token never lives in JS/localStorage. Otherwise: the legacy
cross-origin API + X-Atloria-Reader-Token header.

## Properties

| Property | Type |
|---|---|
| `code` | `'DOCS_ACCESS_REQUIRED'` |
| `mode` | `'PASSWORD' | 'EMAIL_DOMAIN' | 'SSO' | 'PRIVATE' | 'PUBLIC'` |
| `sso` | `boolean` |
