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

This commit is contained in:
Nastya 2025-05-11 20:26:11 +03:00
parent 2b5ae862de
commit bdbabad613

@ -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 {