From 18c0432db47d874f02956712c7f89224265ef3b7 Mon Sep 17 00:00:00 2001 From: Will Monk Date: Tue, 24 Feb 2026 15:32:54 -0600 Subject: [PATCH] Fix QR data handling in WhatsApp auth (#467) Running WhatsApp setup fails because the string interpolation of `qrData` does not inject quotes. --- setup/whatsapp-auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);