how to add basic auth in axios code example
Example: axios basic auth generate
await axios.post(session_url, {}, {
auth: {
username: uname,
password: pass
}
});
await axios.post(session_url, {}, {
auth: {
username: uname,
password: pass
}
});