My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

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