salman0ansari / whatsapp-api-nodejs

RESTful WhatsApp API with Multiple Device Support
GNU General Public License v3.0
1.27k stars 605 forks source link

Token doesn't work #795

Open denisonlopes opened 11 months ago

denisonlopes commented 11 months ago

The token is not working and instances are created the same as the wrong token. Ex: When configuring the token as "123" on the server, when making a request to start an instance, informing the token "456" (which should generate an error), the system starts the instance normally.

In fact, if I send the request without the token, it starts the instance in the same way without any validation.

Grateful.

Screenshot_4

jjhoow commented 11 months ago

Change it PROTECT_ROUTES=true

denisonlopes commented 11 months ago

Thanks for the feedback, friend. I've performed this test before, but nothing changes.

rootjack404 commented 11 months ago

Thanks for the feedback, friend. I've performed this test before, but nothing changes.

It seems too late, but you can't put symbol on your token, it needed to be just alphabet and numeric, and it should work.