mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-12 23:01:07 +00:00
mcp: add 30s timeouts to remaining unguarded API fetches
This commit is contained in:
parent
bc9eb5dc57
commit
3693fdb2f4
2 changed files with 2 additions and 0 deletions
|
|
@ -103,6 +103,7 @@ export async function validateOAuthToken(
|
|||
headers: {
|
||||
Authorization: `Bearer ${token}`,
|
||||
},
|
||||
signal: AbortSignal.timeout(30_000),
|
||||
})
|
||||
|
||||
if (!sessionResponse.ok) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue