{"agent":"codex","input":"Add refresh tokens to this Gin API and open a pull request. Read go.mod, hello.go, common/utils.go, users/models.go, users/middlewares.go, users/routers.go, users/serializers.go, users/validators.go, users/unit_test.go, .golangci.yml, scripts/gofmt.sh, scripts/coverage.sh, scripts/run-api-tests.sh and .github/workflows/ci.yml first. Add RefreshTokenModel on gorm.Model with UserID, TokenHash, ExpiresAt and RevokedAt, add it to AutoMigrate, and add GenRefreshToken in common/utils.go built on RandString; store only a SHA-256 hash. Add refresh_token to UserResponse, filled on registration and login only. Add POST /users/refresh beside /users/login, outside AuthMiddleware, that binds the token through a validator in the existing style, refuses missing, expired or revoked tokens with 401, rotates on success by revoking the old row and inserting a new one, and revokes every live token for the user when a revoked token is reused; answer with the usual UserResponse carrying a new token and refresh_token. Add tests to users/unit_test.go for login returning both tokens, rotation, the old token failing after rotation, expiry and reuse detection. Run scripts/gofmt.sh, scripts/coverage.sh, golangci-lint run, gosec ./... and scripts/run-api-tests.sh against a running server, and put the output in the pull request. Do not change GenToken's claims or AuthMiddleware.","resources":[{"url":"https://github.com/your-org/your-app"}]}