© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Sebastian
Which technology is used to authorize?
Basic auth with axios is working as follows:
axios.get(URL, userData, { auth: {username: 'janedoe',password: 's00pers3cret'}}).then(...
see Request-Config on the docs
github.com/axios/axios
shahaparan
I have been using reactjs and redux .
In this case it doesn't matter. Axios' API is the same.
{username: "test@gmail.com" , password:"23423"} , I want to request by using axios.get() for getting data . how can i implement this ?; axios.get(${URL},userdata).then(({ data }) => { console.log(data); }); i got error
${URL},userdata
normally you don't send data via get request. I assume your username and password data is stored in it?
Hier is an updated sample:
axios.get(URL, { auth: userData }).then(...
what error do get in detail? It would be great if you can provice a working sample on codesandbox.io or similiar so we can work through it.
Harry moreira
Ok I will follow direction what do I need to do is the first time I’m using this