v2.0.3 fix usetoken in makerequest
All checks were successful
Deploy / Publish (push) Successful in 21s

This commit is contained in:
Nastya 2025-05-10 23:42:53 +03:00
parent c022f5ee0a
commit 2b5ae862de
2 changed files with 2 additions and 2 deletions

@ -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"] = `Bearer ${getAuthToken()}`;
if (useToken) headers["Authorization"] = getAuthToken() ? "" : `Bearer ${getAuthToken()}`;
if (contentType) headers["Content-Type"] = "application/json";
try {

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