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:
@@ -36,6 +36,7 @@ async function refreshTokens(token: JWT) {
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
},
|
||||
method: "POST",
|
||||
signal: AbortSignal.timeout(15_000),
|
||||
})
|
||||
|
||||
const new_tokens = await response.json()
|
||||
|
||||
Reference in New Issue
Block a user