Passing basic auth in axios code example Example: axios bearer token { headers: { 'Authorization': 'Bearer ' + validToken() } }