Update to @shlinkio/shlink-js-sdk 2.1.0

This commit is contained in:
Alejandro Celaya
2025-04-17 08:52:56 +02:00
parent d1d6a6b373
commit f71218998f
4 changed files with 14 additions and 10 deletions

View File

@@ -23,7 +23,11 @@ export const buildShlinkApiClient = (httpClient: HttpClient) => (getStateOrSelec
: getStateOrSelectedServer;
const serverKey = `${apiKey}_${baseUrl}`;
const apiClient = apiClients[serverKey] ?? new ShlinkApiClient(httpClient, { apiKey, baseUrl }, { credentials: 'include' });
const apiClient = apiClients[serverKey] ?? new ShlinkApiClient(
httpClient,
{ apiKey, baseUrl },
{ requestCredentials: 'include' },
);
apiClients[serverKey] = apiClient;
return apiClient;