#Local auth not working, i keep scanning

1 messages · Page 1 of 1 (latest)

hollow wave
#

what do i have to do to make local auth work i have code like this

 const { Client, LocalAuth } = require('whatsapp-web.js');
  const { GroupChat } = require('whatsapp-web.js')
  const qrcode = require('qrcode-terminal');
const {lengthWords} = require('./word');
const {menu, say, generateMenu} = require('./menu');
const {removeFunc, mikey} = require('./remove');
const {gifToSticker} = require('./sticker');
  const client = new Client({
    authStrategy:new LocalAuth({
      dataPath: "..Cache/Clients/Client1"
    }),
      puppeteer: {
          browserWSEndpoint: await browser.wsEndpoint()
      },
      webVersion: '2.2409.2',
      webVersionCache: {
        type: 'remote',
        remotePath: 'https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.2409.2.html'
      }
  });
next anchor
#

I think it's because this browserWSEndpoint: await browser.wsEndpoint()

hollow wave
next anchor
#

If it is possible I would use headless: false instead

hollow wave
#

so i have this