refresh+/

This commit is contained in:
Nastya 2024-04-06 11:21:10 +03:00
parent 79adf3ca86
commit be6f3cdce6
3 changed files with 4598 additions and 2 deletions

@ -62,7 +62,7 @@ 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", {
return axios<never, AxiosResponse<{ accessToken: string; }>>(process.env.REACT_APP_DOMAIN + "/auth/refresh/", {
headers: {
"Authorization": token,
"Content-Type": "application/json",

4596
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

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