I recently implement Axios in my react native app. The problem I am facing is whenever I add authorization header with the request, it returns 400 while the same request with same Auth token is working fine with Postman. What can be the issue?
axios.get(EndPointURL, {
headers: {
Authorization: BearerToken
}
})
.then(result => {
console.log(result);
})
.catch(reason => {
console.log(
reason
);
});
}