diff --git a/services/api.ts b/services/api.ts index dfb4f2a..99d65ce 100644 --- a/services/api.ts +++ b/services/api.ts @@ -29,9 +29,9 @@ async function fetchWithAuth( tokenPreview: token ? `${token.substring(0, 20)}...` : 'Aucun', }); - const headers: HeadersInit = { + const headers: Record = { 'Content-Type': 'application/json', - ...options.headers, + ...options.headers as Record, }; if (token) {