Mechanism behind QR code scanning of whatsapp webapp

前端 未结 2 1432
执念已碎
执念已碎 2020-12-12 16:20
  • I could not find any answers related to the working mechanism of qr code scanning used on whatsapp web-app.
  • How does the authentication happen when th
2条回答
  •  北海茫月
    2020-12-12 16:57

    It uses something like below.

    1. Whatsapp web application is opened by user via web browser.
    2. Server creates a UNIQUE token (number) and embeds that number in QR-Code
    3. Whatsapp phone application reads QR-Code and decodes token.
    4. Whatsapp phone application sends information about its current user and this newly read token to whatsapp server.
    5. Whatsapp server matches token (+ phone app user information) with web browser.
    6. It automatically authenticates user and open new web page with his/her information on it.

提交回复
热议问题