bearer для токена рефреша

This commit is contained in:
Nastya 2024-04-16 11:41:01 +03:00
parent 08a3edb3e3
commit f3290036d1
2 changed files with 3 additions and 2 deletions

@ -65,9 +65,10 @@ export async function makeRequest<TRequest = unknown, TResponse = unknown>({
}
function refresh(token: string) {
return axios<never, AxiosResponse<{ accessToken: string; }>>(process.env.REACT_APP_DOMAIN + "/auth/refresh/", {
headers: {
"Authorization": token,
"Authorization": `Bearer ${token}`,
"Content-Type": "application/json",
},
});

@ -1,6 +1,6 @@
{
"name": "@frontend/kitui",
"version": "1.0.80",
"version": "1.0.81",
"description": "test",
"main": "./dist/index.js",
"module": "./dist/index.js",