diff --git a/setup/whatsapp-auth.ts b/setup/whatsapp-auth.ts index 7028f08..f336913 100644 --- a/setup/whatsapp-auth.ts +++ b/setup/whatsapp-auth.ts @@ -210,7 +210,7 @@ async function handleQrBrowser( const qrData = fs.readFileSync(qrFile, 'utf-8'); try { const svg = execSync( - `node -e "const QR=require('qrcode');const data=${JSON.stringify(qrData)};QR.toString(data,{type:'svg'},(e,s)=>{if(e)process.exit(1);process.stdout.write(s)})"`, + `node -e "const QR=require('qrcode');const data='${qrData}';QR.toString(data,{type:'svg'},(e,s)=>{if(e)process.exit(1);process.stdout.write(s)})"`, { cwd: projectRoot, encoding: 'utf-8' }, ); const html = QR_AUTH_TEMPLATE.replace('{{QR_SVG}}', svg);