From 2b5ae862de0db5cad0669eda8bb3679cd6cc3031 Mon Sep 17 00:00:00 2001 From: Nastya Date: Sat, 10 May 2025 23:42:53 +0300 Subject: [PATCH] v2.0.3 fix usetoken in makerequest --- lib/api/makeRequest.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/api/makeRequest.ts b/lib/api/makeRequest.ts index 496300a..d507240 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"] = `Bearer ${getAuthToken()}`; + if (useToken) headers["Authorization"] = getAuthToken() ? "" : `Bearer ${getAuthToken()}`; if (contentType) headers["Content-Type"] = "application/json"; try { diff --git a/package.json b/package.json index bc994ae..2cc5145 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@frontend/kitui", - "version": "2.0.2", + "version": "2.0.3", "description": "test", "main": "./dist/index.js", "module": "./dist/index.js",