From 8837f8452c0b61d5de8bb18df7a12c29e29c0fe5 Mon Sep 17 00:00:00 2001 From: Jacob Lee Date: Mon, 5 May 2025 12:35:00 -0700 Subject: [PATCH] docs: Fix JS example in custom auth how-tos (#4536) Should be `defaultHeaders`: https://github.com/langchain-ai/langgraph/blob/main/libs/sdk-js/src/client.ts#L76 --- docs/docs/how-tos/auth/custom_auth.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/how-tos/auth/custom_auth.md b/docs/docs/how-tos/auth/custom_auth.md index 9ae62b169..826383887 100644 --- a/docs/docs/how-tos/auth/custom_auth.md +++ b/docs/docs/how-tos/auth/custom_auth.md @@ -112,7 +112,7 @@ Assuming you are using JWT token authentication, you could access your deploymen const my_token = "your-token"; // In practice, you would generate a signed token with your auth provider const client = new Client({ apiUrl: "http://localhost:2024", - headers: { Authorization: `Bearer ${my_token}` }, + defaultHeaders: { Authorization: `Bearer ${my_token}` }, }); const threads = await client.threads.search(); ```