Comment about SSEClientTransport auth API

This commit is contained in:
Justin Spahr-Summers
2025-02-11 20:43:01 +00:00
parent f4aefa2706
commit ba99638f48

View File

@@ -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) {