devlikeapro / waha

WAHA - WhatsApp HTTP API (REST API) that you can configure in a click! Two engines: chromium-based WEBJS and pure-websocket NOWEB
https://waha.devlike.pro/
Apache License 2.0
878 stars 273 forks source link

--use-pairing-code NOWEB #154

Closed sg957 closed 1 year ago

sg957 commented 1 year ago

Added in Baileys the option to log in with a verification code instead of scanning a QR It is much easier and convenient and also does not change every few seconds like QR We'd appreciate it if you could add that too

allburov commented 1 year ago

Hi! We've added new endpoint for that - POST /api/{session}/auth/request-code

{
  "phoneNumber": "12132132130"
}

https://waha.devlike.pro/docs/how-to/sessions/#get-pairing-code

Available in WAHA Plus starting 2023.8.13 version, please update the image and restart docker containers! We'll release the feature in September 2023 in Core.