Merged in feat/sw-3006-timeout-fetch (pull request #2335)

feat(SW-3006): added default timeout to all requests

* feat(sw-3006): added default timeout to all requests

* Fixed spreading


Approved-by: Joakim Jäderberg
This commit is contained in:
Linus Flood
2025-06-11 12:39:58 +00:00
parent d560ac0fca
commit 3b9d01af9d
14 changed files with 46 additions and 29 deletions

View File

@@ -110,6 +110,7 @@ async function fetchRequestOtp({ sasAuthToken }: { sasAuthToken: string }) {
body: JSON.stringify({
referenceId: uuidv4(),
}),
signal: AbortSignal.timeout(15_000),
})
}

View File

@@ -87,6 +87,7 @@ async function fetchVerifyOtp(input: z.infer<typeof inputSchema>) {
otpCode: input.otp,
databaseUUID: databaseUUID,
}),
signal: AbortSignal.timeout(15_000),
}
)
}