# OAuth: what the authorization pages show [`OAUTH.md`](OAUTH.md) covers the authorization page and the error page as far as a client and the API see them: when each answers, what the `__authorizeData`, `__sessions` and `__errorData` statements hold, and what each API call takes and answers. It leaves "the rest of a page" to the server. This page covers that rest: what a person sees on each page, what each control does, which API call it makes, and how the pages are built and served. ## Sources *This section is informative.* `atproto/oauth.md`, "Authorization Interface", and `atproto/permission.md` for what each scope allows. The reference's own pages are not a source. What they show is not compared, only what a person's actions on them send to the API and where the browser ends up ("How it is checked"). ## How the pages are built The pages are one Svelte 5 app in `web/`, built by Vite into `web/dist`, with `web/dist/email.html`, the emails' HTML part (`EMAIL.md`, "The message"). `web/AGENTS.md` covers how it is laid out and styled. `pds-server` embeds the build when it is compiled, so the `pds` binary serves the pages with nothing beside it: no Node, no files on disk. A build of `pds` without `web/dist` fails and says to build `web/` first. The authorization page, the passkey page (`PASSKEYS.md`) and the error page answer the HTML `OAUTH.md` and `PASSKEYS.md` give them, and these too: - In `
`, `` for each stylesheet of the build's entry, `