proxy TanStack Start server function requests to standalone backend?
I have a separate Fastify API. For public endpoints, I can just call this API directly from my Tanstack Start server functions, but I'm stuck on handling authenticated routes that need token refresh. How would one usually handle those scenarios?
I read about proxying in Next.js (https://maxschmitt.me/posts/next-js-api-proxy) but that seems to be more about CORS issues rather than auth flows. Unless it solves both? And if so, how would that be done in Start?
I read about proxying in Next.js (https://maxschmitt.me/posts/next-js-api-proxy) but that seems to be more about CORS issues rather than auth flows. Unless it solves both? And if so, how would that be done in Start?