About
This skill provides a comprehensive architecture for handling data fetching in modern Next.js applications communicating with FastAPI backends. It implements a layered approach including client-side utilities with automatic token refresh, server-side fetchers that forward cookies, and API route proxies that handle Bearer token injection. By standardizing error classes, retry logic, and request flows, it ensures consistent communication between the frontend and backend while simplifying complex authentication workflows across different Next.js rendering environments like Server Actions, API Routes, and Client Components.