I'm trying to setup an architecture for my software-project. As you can see in the drawing, as the client successfully logs in, he will receive a JWT (Node.js API). My Question now is, if it is a good practice to send this token to the MQTT Broker so the client can access the MQTT Broker directly and get live data. Is this how its done? If not, how can i authenticate the client to the API and the MQTT Broker with just a single log-in? Thanks in advance!
