I\'ve created a small project with a node back-end and react front-end to fetch the data through REST calls. I used Axios library, but when I pass the headers w
You need to concatenate 'Bearer ' before the token, like this:
axios.defaults.headers.common['Authorization'] = 'Bearer ' + localStorage.getItem('jwtToken');