@wppconnect/wa-js - v4.6.0
    Preparing search index...

    Function refreshQR

    • Refresh the current QRCode when is waiting for scan and return the current code

      For legacy: It will wait for next code For multidevice: It will generate a new one

      Returns Promise<AuthCode | null>

      await WPP.conn.refreshQR();