title: issue with the Authorisation: Bearer access_token (the headers) in Axios POST in reacts
body: <p>I am trying to create a login from the end point which uses authorisation and bearer access_token. I don't know to properly pass the token to the authorisation in the header and hence the following error occurs. </p>
  
  <p>Response {type: "basic", url: "<a href="http://127.0.0.1:8000/" rel="nofollow noreferrer">http://127.0.0.1:8000/</a>", redirected: true, status: 200, ok: true, …}</p>
  
  <p>I have tried to read up Axios post and grant type to see how I can pass the access_token to the bearer. The problem is the token is generated during the sign_up per user. How do I get to use it in the login. 
  The image from the postman to illustrate. I copied the access_token generated from sign up to the authorisation. </p>
  
  <p><a href="https://i.stack.imgur.com/dl47W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dl47W.png" alt="enter image description here"></a></p>
  
  <pre><code>handleLogin(event){
        event.preventDefault();
          var formData = new FormData();
          formData.append("password", this.state.l_password);
          formData.append("email",this.state.l_email);
          formData.append("remember_me", true);
        fetch('api/auth/login',
           {
              headers:{
                 // 'accept': 'application/x-www-form-urlencoded',
                  'content-type': 'application/json',
                  'authorization': 'bearer',
                  'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
              },
              method: "POST",
              body:formData
  
           }
        )
             .then(response =&gt; {
                  console.log(response);
  
              })
              .then(json =&gt; {
                  return json.json();
  
              })
          }
  </code></pre>
  
  <p>From Postman, I am using only content-type:  application/json as header to login. But what baffled most is, it is showing status: ok and it is not actually working.</p>
  
  <p><a href="https://i.stack.imgur.com/ZnWp5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZnWp5.png" alt="enter image description here"></a></p>