<discarded-conversation>
[User]: Reorganise the auth module.

[Assistant]: Moving + editing + adding a test.
</discarded-conversation>

<kept-tail>
[User]: Run the suite and report results.
</kept-tail>

<files-touched>
## Files touched
R=read, W=write, E=edit, M=move/rename, D=delete

```text
R  README.md
RE  src/auth/middleware.ts
W  src/auth/middleware.test.ts
M  docs/old.md
D  scripts/deprecated.sh
RWEMD  everything.txt
```
</files-touched>
