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",