• 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:

    Bangle.http(
        'http://example.com',
        {
            method: 'POST',
            headers: {Authorization: 'Bearer <your JWT>'}
        }
    )
    

    (maybe you typed header instead of headers or some other typo?)

About

Avatar for devsnd @devsnd started