bearer для токена рефреша
This commit is contained in:
parent
08a3edb3e3
commit
f3290036d1
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user