import type { AxiosInstance } from "axios"; import { getBrowserId } from "@app/utils/browserIdentifier"; export function setupApiInterceptors(client: AxiosInstance): void { // Add browser ID header for WAU tracking client.interceptors.request.use( (config) => { const browserId = getBrowserId(); config.headers["X-Browser-Id"] = browserId; return config; }, (error) => Promise.reject(error), ); } /** Auth headers for raw fetch() calls (SSE streams, etc.). Proprietary overrides with JWT + XSRF. */ export function getAuthHeaders(): Record { return {}; }