Arduino Library to make http post request with bearer authentication
The &quot;Authorization&quot; is simply an HTTP header.  So add it in your request like:
http.addHeader(&quot;Authorization&quot;, token);

The value of &quot;token&quot; is just the string &quot;Bearer &quot; followed by your authorization string.  Don't neglect the SPACE after the word &quot;Bearer&quot;.  It will look like:

&quot;Bearer eyJhb......&quot;

On the Arduino MKR WiFi 1010 you use the WiFiNINA library which is slightly different.  Here is some example code:
  if (client.connect(server, 80)) {
    client.println(&quot;POST /test/post.php HTTP/1.1&quot;);
    client.println(&quot;Host: www.targetserver.com&quot;);
    client.println(authorizationHeader);
    client.println(&quot;Content-Type: application/x-www-form-urlencoded&quot;);
    client.print(&quot;Content-Length: &quot;);
    client.println(postData.length());
    client.println();
    client.print(postData);
  }

The variable authorizationHeader will have the &quot;Authorization: Bearer xxxxx....&quot; authorization string.
Or you can replace the client.println(authorizationHeader); by:
client.print(&quot;Authorization: Bearer &quot;);
client.print(token);

to avoid dealing with concatenations, etc.
client can be an instance of WiFiSSLClient which works with both WiFi101 and WiFiNINA.