How can we do HTTP Basic Auth in React. I looked at the top answer given here: How to do request HTTP Digest auth with Node.JS?
the code snippet provided here ran loc