iegomez / mosquitto-go-auth

Auth plugin for mosquitto.
MIT License
495 stars 165 forks source link

JWT backend JS mode not working #293

Closed spencerfeng closed 10 months ago

spencerfeng commented 10 months ago

When I use this plugin with JWT backend in js mode, even though I provided the token as follows:

image image

I am always getting the following error in mosquitto logs:

image

BTW, here is my code: https://github.com/spencerfeng/mosquitto-go-auth-poc

spencerfeng commented 10 months ago

I made a mistake. I used the parsed_user_script.js as user_script.js. After using user_script.js, the connection can be made.