refresh post without /

This commit is contained in:
Nastya 2024-04-16 13:09:45 +03:00
parent f3290036d1
commit aacb44fd00
2 changed files with 3 additions and 2 deletions

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

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