title: how to use barer token in register api flutter
body: <p>i am having an url related to generate the access token for registration and i am getting the response.but my problem is i am unable to use the generated token in register api as header.can any one help me solve this issues</p>
  
  <pre><code>Future&lt;Map&gt; ajaxPost (Register regData) async {
  </code></pre>
  
  <p>var response = await http.post(
          'your api client_credentials',
          headers: {HttpHeaders.authorizationHeader: "Basic barer token"},
        );</p>
  
  <pre><code>    responseBody = json.decode(response.body);
  
      print(responseBody);                 
  return responseBody;
  </code></pre>
  
  <p>}</p>