mcp: add 30s timeouts to remaining unguarded API fetches

This commit is contained in:
Polylane Automation 2026-06-20 13:15:00 +00:00
parent bc9eb5dc57
commit 3693fdb2f4
2 changed files with 2 additions and 0 deletions

View file

@ -103,6 +103,7 @@ export async function validateOAuthToken(
headers: {
Authorization: `Bearer ${token}`,
},
signal: AbortSignal.timeout(30_000),
})
if (!sessionResponse.ok) {

View file

@ -89,6 +89,7 @@ app.get("/.well-known/oauth-authorization-server", async (c) => {
// Fetch the authorization server metadata from the main API
const response = await fetch(
`${apiUrl}/.well-known/oauth-authorization-server`,
{ signal: AbortSignal.timeout(30_000) },
)
if (!response.ok) {