You should be able to pass any kind of authorization in the headers of the options when making the HTTP call.
headers
You can for example check the sources of the android integration here: https://github.com/espruino/BangleApps/blob/master/apps/android/boot.js#L310-L328
So basically you should be able to make a POST call with authorization headers like this:
Bangle.http( 'http://example.com', { method: 'POST', headers: {Authorization: 'Bearer <your JWT>'} } )
(maybe you typed header instead of headers or some other typo?)
header
@devsnd started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
You should be able to pass any kind of authorization in the
headers
of the options when making the HTTP call.You can for example check the sources of the android integration here:
https://github.com/espruino/BangleApps/blob/master/apps/android/boot.js#L310-L328
So basically you should be able to make a POST call with authorization headers like this:
(maybe you typed
header
instead ofheaders
or some other typo?)