title: Magento 2 Register and login REST API
body: <p>I'm creating an app for magento2 with Rest API. I'm facing the below issues.</p>
  
  <p>Im able to create the user through REST  API</p>
  
  <pre><code>auth Berear token : bbiotqwwj04prtja2oum5gvfsqt8dnjh
  
  API : Register 
  
  URL : http://demo-acm-2.bird.eu/rest/all/V1/customers
  method : POST
  Request Body 
  
    {
       "customer": {
           "email": "pradeep123@gmail.com",
           "firstname": "Abc",
           "lastname": "Xyz",
           "storeId": 1
       },
       "password": "Qwe@123123"
    }
  
  
  Response 
  
  {
      "id": 3,
      "group_id": 1,
      "created_at": "2020-04-18 12:30:40",
      "updated_at": "2020-04-18 12:30:40",
      "created_in": "Default Store View",
      "email": "pradeep123@gmail.com",
      "firstname": "Abc",
      "lastname": "Xyz",
      "store_id": 1,
      "website_id": 1,
      "addresses": [],
      "disable_auto_group_change": 0,
      "extension_attributes": {
          "is_subscribed": false
      }
  }
  </code></pre>
  
  <p>But when I try to login with the same user to get token it gives me a message like an error. Is there any other way to get a user token/login with rest api in magento2</p>
  
  <pre><code>    API: Login
  
  URL: http://demo-acm-2.bird.eu/rest/all/V1/integration/customer/token
  method : POST
  Request Body
  
  {
      "username" : "pradeep123@gmail.com",
      "password" : "Qwe@123123"
  }
  
  Response 
  
  {
      "message": "You did not sign in correctly or your account is temporarily disabled."
  }
  </code></pre>