nizarfadlan / baileys-api

Simple WhatsApp REST API with multiple device support
MIT License
66 stars 31 forks source link

Please support code login function #10

Open xiaohuwei opened 3 weeks ago

xiaohuwei commented 3 weeks ago

Baileys already supports logging in through 8-digit codes, and we hope it will be supported!

xiaohuwei commented 3 weeks ago
const code = await sock.requestPairingCode(phoneNumber)
console.log(`Pairing code: ${code}`)
nizarfadlan commented 6 days ago

No problem, I will add it for session with pairing code.