Re:Ask HN: How does web.whatsapp.com work?
by jpterry on Wednesday January 28, 2015 @10:58PM
(#8964251)
The QR code contains data unique to your web session. You're already authenticated to WhatsApp on your phone. So the data in that QR code is sent back to WhatsApp's web server, through your phone, and they connect the open web session to your account. Websockets make it seamless.
Also, this is just an educated guess.