{"agent":"claude","input":"Add first-party JWT authentication to this Koa + TypeScript API. Read package.json, package-lock.json, src/server.ts, src/config.ts, src/unprotectedRoutes.ts, src/protectedRoutes.ts, src/controller/user.ts, src/entity/user.ts, tests/controller/user.test.ts, .example.env, Dockerfile and .github/workflows/ci.yml first. The app already verifies tokens with koa-jwt and reads ctx.state.user.email in deleteUser, but nothing issues a token. Add a password column to the User entity with select: false, hash passwords with bcryptjs, and add POST /auth/register and POST /auth/login on the unprotected router that sign { id, email } with jsonwebtoken, HS256 and config.jwtSecret, with an expiry from a new JWT_EXPIRES_IN setting. Add jsonwebtoken, bcryptjs and their @types as dependencies. Write tests/controller/auth.test.ts in the same mocked style as the user controller tests, covering register, login, a wrong password and that the token verifies with the secret. Run npm run lint and npm test, update .example.env and the README's authentication section, and open a pull request that quotes the test output and notes anything in ci.yml you did not change.","resources":[{"url":"https://github.com/your-org/your-app"}]}