v2.0.3 fix usetoken in makerequest
All checks were successful
Deploy / Publish (push) Successful in 21s
All checks were successful
Deploy / Publish (push) Successful in 21s
This commit is contained in:
parent
c022f5ee0a
commit
2b5ae862de
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user