v1.1.0-beta.045 - fix(koreader): move authenticateKoreader out of the route file
๐งน Tech debt (pre-existing on main; surfaced by the build during the back-port)
- Next.js App Router route files may only export HTTP method handlers + segment config; koreader/users/auth/route.ts also exported the authenticateKoreader helper, which trips Next's generated route-type validator (tsc TS2344) โ masked only by next.config's typescript.ignoreBuildErrors
- Moved authenticateKoreader to src/lib/koreader-auth.ts; the route imports it and now exports only GET
โ Verification
- next build clean (regenerates .next/types); tsc --noEmit clean against the regenerated validator; vitest unaffected