Webhook Discord
This commit is contained in:
@@ -18,6 +18,7 @@ import { getAuthToken } from './userIdentityService';
|
||||
import { mockBackendService } from './mockBackendService';
|
||||
import { CareInfo, Language } from '../../types';
|
||||
import { getConfiguredBackendRootUrl } from '../../utils/backendUrl';
|
||||
import { getAppInfoHeaders } from '../../utils/appInfoHeaders';
|
||||
|
||||
const REQUEST_TIMEOUT_MS = 60000;
|
||||
|
||||
@@ -61,6 +62,7 @@ const makeRequest = async <T,>(
|
||||
const headers: Record<string, string> = {
|
||||
'Content-Type': 'application/json',
|
||||
'Authorization': `Bearer ${options.token}`,
|
||||
...getAppInfoHeaders(),
|
||||
};
|
||||
if (options.idempotencyKey) {
|
||||
headers['Idempotency-Key'] = options.idempotencyKey;
|
||||
|
||||
Reference in New Issue
Block a user