#how to auth with phone number instead of qr?

6 messages · Page 1 of 1 (latest)

stable skiff
#

help !!

rain marten
#

let pairingCodeRequested = false;
client.on('qr', async (qr) => {
// NOTE: This event will not be fired if a session is specified.
qrcode.generate(qr, { small: true });

        // paiuting code example
        const pairingCodeEnabled = true;
        if (pairingCodeEnabled && !pairingCodeRequested) {
            const pairingCode = await client.requestPairingCode('yournumberherewithout+'); // enter the target phone number
            console.log('Pairing code enabled, code: '+ pairingCode);
            pairingCodeRequested = true;
        }
    });
celest fractal
keen vale
#

Hello, i am getting this error:

TypeError: client.requestPairingCode is not a function
at Client.<anonymous> (D:\whatsapp-client\whatsapp-client\controllers\whatsappClient.js:63:46)

past flicker
keen vale
#

@past flicker , indian phone numbers are facing problem in connecting the whatsapp