aldinokemal / go-whatsapp-web-multidevice

API for Whatsapp Web Multi Device Version, Support UI & Webhook
MIT License
581 stars 245 forks source link

⚡️ Add a Secret option to Webhook #184

Closed LuizEdgar closed 1 month ago

LuizEdgar commented 2 months ago

What problem does your feature request solve?

There is no way to know who is calling my Webhook. I want to add a Secret to GoWhatsapp so it sends the secret when calling the Webhook and then I csan verify this was sent by the GoWhatsapp.

Describe the solution you are proposing.

  1. Add a new option like --webhook-secret=abcdefghijklm12345
  2. The secret abcdefghijklm12345 is sent in a Header on the Webhook HTTPs request.
  3. I check the abcdefghijklm12345 on my side.

Describe alternatives you have considered.

No response

Importance

I Need It

Additional Context

aldinokemal commented 2 months ago

interesting, will prioritize this

sohepalslamat commented 2 months ago

Me too

aldinokemal commented 2 months ago

https://github.com/aldinokemal/go-whatsapp-web-multidevice/releases/tag/v4.18.0

LuizEdgar commented 2 months ago

Amazing! Thanks! :)