I tried to do it as it says in the official documentation:
axios.defaults.headers.common["Authorization"] = authToken;
But if I make a request from a different function it comes out undefined
I tried to do it as it says in the official documentation:
axios.defaults.headers.common["Authorization"] = authToken;
But if I make a request from a different function it comes out undefined