title: when user want to login : AXIOS ERROR: [Error: Request failed with status code 401] BAD_REQUEST
body: <p>i have a react native app and want to login EXISTING USER IN DATABASE with username and password for get the accesstoken and refreshtoken from api/login. but i get 401 error .</p>
  <p>error in docker log:</p>
  <pre><code>
      app_1       | 2022-06-23 20:56:55.997 ERROR 1 --- [nio-8080-exec-3] c.r.hamsafar
  .service.UsersServiceImpl    : User Not Found In Database
  app_1       | Hibernate:
  app_1       |     select
  app_1       |         users0_.id as id1_1_,
  app_1       |         users0_.activation_code as activati2_1_,
  app_1       |         users0_.active as active3_1_,
  app_1       |         users0_.disabled as disabled4_1_,
  app_1       |         users0_.failed_try_count as failed_t5_1_,
  app_1       |         users0_.family as family6_1_,
  app_1       |         users0_.lock_time as lock_tim7_1_,
  app_1       |         users0_.name as name8_1_,
  app_1       |         users0_.national_code as national9_1_,
  app_1       |         users0_.password as passwor10_1_,
  app_1       |         users0_.sms_time as sms_tim11_1_,
  app_1       |         users0_.username as usernam12_1_
  app_1       |     from
  app_1       |         users users0_
  app_1       |     where
  app_1       |         users0_.username=?
  </code></pre>
  <p>This is while the user is in the database and it works with the same username and password correctly and without error in postman.</p>
  <p>axios codes:</p>
  <pre><code> var formData = new FormData();
    formData.append('username', '0123456789');
    formData.append('password', '0123456789');
    axios.post(
      'http://1.2.3.4:5555/api/login'
      , { formData })
      .then(response =&gt; {
            console.log(&quot;RESPONSE RECEIVED: &quot;, response);
          })
          .catch((err) =&gt; {
            console.log(&quot;AXIOS ERROR: &quot;, err);
          })
  
  </code></pre>
  <p>please help me</p>