From d949deb784c995feca92b9c5329fccf27607f2b6 Mon Sep 17 00:00:00 2001 From: Nastya Date: Sun, 11 May 2025 20:26:11 +0300 Subject: [PATCH] v2.0.3 fix token --- lib/api/makeRequest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/makeRequest.ts b/lib/api/makeRequest.ts index d507240..14bd110 100644 --- a/lib/api/makeRequest.ts +++ b/lib/api/makeRequest.ts @@ -24,7 +24,7 @@ export async function makeRequest({ withCredentials?: boolean; }): Promise { const headers: Record = {}; - if (useToken) headers["Authorization"] = getAuthToken() ? "" : `Bearer ${getAuthToken()}`; + if (useToken) headers["Authorization"] = getAuthToken() ? `Bearer ${getAuthToken()}` : ""; if (contentType) headers["Content-Type"] = "application/json"; try {