Mqtt JWT password setting

I installed chat21-widget using source code, but when I finished installing chat21-server, I found that the user password for connecting MQTT in chat21-widget is dynamically generated according to user id, in this case how should I set jwt in mqtt User’s password?

Hi haha

Can you please provide more details about your issue? Some code snippet, configuration snippet, log snippet or screenshots, so we can better understand your issue?

Thanks,

Andrea


in chat21-web-widget /src/assets/js/chat21client.js , when i want to connect to my chat-21-server. and i was going to found the password of the user JWT, but it is changing everytime after refresh the web page.


Uploading: 截屏2022-07-04 上午8.41.14.png…

Eventually I found out that the JWT user’s password is the token value generated in ‘/createCustomToken’ in /channels/chat21/nativeauth.js of tiledesk-server, but it is dynamic

and in chat21-ionic has the same

looking forward to your reply

the screenshoot error & the token log


Uploading: 截屏2022-07-04 上午9.08.56.png…


the token log

Hi,

In this forum we only provide high level support for installing and configuring the platform, mainly using the docker compose distribution (available here)

If you need support on specifc Tiledesk components, we are putting a great effort in providing better documentation on general architecture and code design, actually a work in progress.

Anyway we can provide you some support on specific, very focused questions, using the issue tracking on github, in this case specific to chat21. Please refer to the modules that I understand are involved in your question, but please try to let us understand better the context (what are you trying to achieve, the installation goal, the final design and involved components you have in mind etc.).

Initially you can start creating an issue on the main chat21 server component available here:

Hope this helps,

Andrea