#Trigger QR Event
3 messages · Page 1 of 1 (latest)
router.get("/getqr", async (req, res) => {
client.once('qr', (qr) => {
console.log('QR RECIEVED: ', qr);
res.status(200).send(qr);
});
});
I would highly recommend keeping the QR string in a variable, updating it everytime the qr changes, and returning it to the endpoint