mirror of
https://dev.azure.com/tstanciu94/Packages/_git/tuitio-client
synced 2025-03-30 04:21:40 +03:00
fix
This commit is contained in:
parent
708c63907a
commit
425a6ccfc0
@ -6,10 +6,10 @@ import { fetch } from "../state";
|
|||||||
function getHeaders(): AxiosHeaders {
|
function getHeaders(): AxiosHeaders {
|
||||||
const { token } = fetch();
|
const { token } = fetch();
|
||||||
const headers = new AxiosHeaders({
|
const headers = new AxiosHeaders({
|
||||||
["Content-Type"]: "application/json"
|
"Content-Type": "application/json"
|
||||||
});
|
});
|
||||||
if (token) {
|
if (token) {
|
||||||
headers["Authorization"] = `Tuitio ${token}`;
|
headers.Authorization = `Tuitio ${token}`;
|
||||||
}
|
}
|
||||||
return headers;
|
return headers;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user