@wppconnect/wa-js - v3.19.3
    Preparing search index...

    Function genLinkDeviceCodeForPhoneNumber

    • Alternative login method using code Get the Link Device Code for Authentication using the phone number

      Parameters

      • phone: string
      • sendPushNotification: boolean = true

      Returns Promise<string>

      const code = await WPP.conn.genLinkDeviceCodeForPhoneNumber('[number]');

      // Disable push notification
      const code = await WPP.conn.genLinkDeviceCodeForPhoneNumber('[number]', false);