v1.0.98 fix token
Some checks failed
Deploy / Publish (push) Failing after 25s

This commit is contained in:
Nastya 2025-05-11 20:28:17 +03:00
parent e4ed71bd9a
commit f812320698

@ -24,7 +24,7 @@ export async function makeRequest<TRequest = unknown, TResponse = unknown>({
withCredentials?: boolean;
}): Promise<TResponse> {
const headers: Record<string, string> = {};
if (useToken) headers["Authorization"] = getAuthToken() ? "" : `Bearer ${getAuthToken()}`;
if (useToken) headers["Authorization"] = getAuthToken() ? `Bearer ${getAuthToken()}` : "";
if (contentType) headers["Content-Type"] = "application/json";
try {