title: Console error with vue-auth and axios: "Uncaught (in promise) Error: Request failed with status code 401"
body: <p>For authentication I'm using <code>vue-auth@^3.2.0-beta</code> with the axios HTTP driver. axios itself is on 0.19.2.</p>
  <h3>Sample code</h3>
  <pre><code>this.$auth.login({ data: body, redirect: false }).then(
  () =&gt; {
      // Do success stuff...
  },
  e =&gt; {
      this.error = true
      if (e.response.status === HttpStatus.UNAUTHORIZED) {
        this.loginFailed++;
      }
  });
  </code></pre>
  <p>If the user provides invalid credentials, the server responds with a 401 and an error message is shown. This is working as it should.</p>
  <p>When inspecting the console though, then I see the following error message. It does not seem to have any &quot;functional consequence&quot; but I'm wondering why this error is thrown. While I do understand that there must be some uncaught promise, I don't have any idea where that could be.</p>
  <pre><code>Uncaught (in promise) Error: Request failed with status code 401
      createError createError.js:16
      settle settle.js:17
      handleLoad xhr.js:61
      dispatchXhrRequest xhr.js:36
      xhrAdapter xhr.js:12
      dispatchRequest dispatchRequest.js:52
      promise callback*request Axios.js:61
      wrap bind.js:9
      node_modules axios.1.x.js:51
      node_modules vue-auth.esm.js:819
      node_modules vue-auth.esm.js:818
      node_modules Login.vue?vue&amp;type=script&amp;lang=js&amp;:149
      VueJS 4
      method backend.js:1793
      node_modules UAForm.vue?vue&amp;type=script&amp;lang=js&amp;:12
      submit UAForm.vue:13
      VueJS 33
  createError.js:16
  
  </code></pre>