Sign in
Log inSign up

How can I authorization by using axios get method in reactjs ?

Default profile photo
Anonymous
·Mar 25, 2019

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: ,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)); };