{"agent":"claude","input":"Add rate limiting to better-auth in packages/auth/src/index.ts. Enable it explicitly with storage set to database, add a custom rule for /sign-in/social of 5 requests per 10 seconds, and set appName. Regenerate the auth schema with pnpm auth:generate so the rateLimit table lands in packages/db/src/auth-schema.ts. In the Next.js and Expo auth clients, handle a 429 by reading X-Retry-After and surfacing the wait. Run pnpm typecheck and pnpm lint. Start the Next.js app and prove the rule with a loop of requests to /api/auth/sign-in/social, quoting the status codes and the X-Retry-After header once the limit is hit. Open a pull request with the loop output and say that pnpm db:push applies the new table.","resources":[{"url":"https://github.com/your-org/your-app"}]}