@wppconnect-team/wppconnect - v1.36.4
    Preparing search index...

    Function genLinkDeviceCodeForPhoneNumber

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

      Parameters

      • phone: string
      • OptionalsendPushNotification: boolean

      Returns Promise<string>

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

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