Answer the question
In order to leave comments, you need to log in
How to add bearer token to axios request?
I can't find in the documentation how to correctly add the Bearer token to the request.
My code
axios.post("http://localhost/polls/public/api/logout", {
headers: {
Authorization: 'Bearer {token}'
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question