diff --git a/backend/helpers/cardApi.js b/backend/helpers/cardApi.js index 062b45b..8d0aa21 100644 --- a/backend/helpers/cardApi.js +++ b/backend/helpers/cardApi.js @@ -63,7 +63,7 @@ function acquireToken(timeout) { 'authorization': 'Basic ' + authString, 'content-length': '0', }, - timeout: timeout || 15000, + timeout: timeout || 30000, }; if (isHttps) { @@ -124,7 +124,7 @@ async function ensureToken(timeout) { // Generic request — supports GET and POST with Bearer auth + 401 retry // --------------------------------------------------------------------------- async function cardRequest(method, urlPath, body, options) { - const timeout = (options && options.timeout) || 15000; + const timeout = (options && options.timeout) || 30000; const skipAuth = (options && options.skipAuth) || false; async function doRequest(bearerToken) {