How can I authorization by using axios get method in reactjs ?
Anonymous
I have been tried to login authorization by using Axios GET method .
when I submitted data from input , I want to get "Authorization", but It's showed 'not authorization' message . For example, axios.get(url,{email: test@gmail.com,password: "1234"}) . However, there is no token authorization for this .
Here is code
const loginUser = userData => dispatch => {
axios.get(URL, userData).then(res => console.log(res));
};