shanewholloway / js-u8-mqtt

MQTT Client using u8-mqtt-packet -- suitable for use in the Browser, NodeJS, and Deno.land.
https://shanewholloway.github.io/js-u8-mqtt/
BSD 2-Clause "Simplified" License
57 stars 5 forks source link

Does this library supports JWT auth? #23

Closed ridomin closed 2 weeks ago

ridomin commented 9 months ago

I'd like to use this library to connect from a browser to a MQTT broker authenticating with JWT tokens. OAUTH2-JWT,

Is this supported?

shanewholloway commented 9 months ago

No direct capability, as I have not tested that flow specifically.

That said, this library is made for making compliant MQTT packets, so it should have everything available needed for implementing that flow if you have the specification for it.

if you do create that auth flow, please consider sharing it back as a pull request.