diff --git a/src/features/incidents/incidents.ts b/src/features/incidents/incidents.ts index 1b43a29..9a69ccc 100644 --- a/src/features/incidents/incidents.ts +++ b/src/features/incidents/incidents.ts @@ -57,6 +57,7 @@ export async function getM2MToken(): Promise { grant_type: 'client_credentials', client_id: clientId, client_secret: clientSecret, + ...(config.apiUrl ? { resource: config.apiUrl } : {}), }); const res = await fetch(tokenUrl, {