From ba99638f48a70f5cf169711e5743d4199a717530 Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Tue, 11 Feb 2025 20:43:01 +0000 Subject: [PATCH] Comment about SSEClientTransport auth API --- client/src/lib/hooks/useConnection.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/lib/hooks/useConnection.ts b/client/src/lib/hooks/useConnection.ts index 158bb76..05d362d 100644 --- a/client/src/lib/hooks/useConnection.ts +++ b/client/src/lib/hooks/useConnection.ts @@ -161,6 +161,8 @@ export function useConnection({ backendUrl.searchParams.append("url", sseUrl); } + // Inject auth manually instead of using SSEClientTransport, because we're + // proxying through the inspector server first. const headers: HeadersInit = {}; const tokens = await authProvider.tokens(); if (tokens) {