waha icon indicating copy to clipboard operation
waha copied to clipboard

Support WhatsApp passkey flow when linking device with QR code or pairing code

Open dioneiserino opened this issue 5 months ago • 130 comments

Fixed

  • [x] GOWS
    • https://github.com/tulir/whatsmeow/issues/1184
    • https://github.com/tulir/whatsmeow/pull/1186
    • 2026.7.1 - GOWS - Passkey (WebAuthn) session pairing — pair sessions from your own UI - How to Handle Passkey
  • [ ] NOWEB
    • https://github.com/WhiskeySockets/Baileys/issues/2672
  • [ ] WEBJS
    • https://github.com/wwebjs/whatsapp-web.js/issues/201806
  • [ ] WPP
    • https://github.com/wppconnect-team/wppconnect/issues/2815

Summary

WhatsApp is now requiring a passkey flow when linking a device. WAHA exposes QR code and pairing code flows, but both get stuck because the WhatsApp mobile app asks the user to continue on WhatsApp Web and complete passkey verification.

Environment

  • WAHA image: devlikeapro/waha:gows
  • Engine: GOWS
  • Auth methods tested:
    • QR Code
    • Pairing code via POST /api/{session}/auth/request-code
  • WhatsApp mobile app: Android
  • WAHA session status after starting: SCAN_QR_CODE

What happens

When scanning the QR code, WhatsApp accepts the QR initially, but then shows:

Continue on WhatsApp Web Keep app open on both devices. You may need to scan another QR code to use your Passkey.

When deleting the passkey and trying again, WhatsApp shows:

Create a passkey to log in For security reasons, your account needs a passkey to link devices

The same requirement appears when using the pairing code flow.

Expected behavior

WAHA should either:

  • support this new passkey continuation flow,
  • expose a way for the user to complete the passkey step,
  • document which engines support it,
  • or clearly document that WhatsApp accounts requiring passkeys cannot currently be linked.

Steps to reproduce

  1. Start a new WAHA session.
  2. Get QR code for the session.
  3. Scan the QR code using WhatsApp mobile app.
  4. WhatsApp asks to continue on WhatsApp Web for passkey verification.
  5. Session does not complete in WAHA.

Alternative:

  1. Start a new WAHA session.
  2. Call POST /api/{session}/auth/request-code with the phone number.
  3. Enter the pairing code in WhatsApp.
  4. WhatsApp still requires passkey before linking the device.
  5. Session does not complete in WAHA.

Additional context

The same WhatsApp account can be linked successfully using the official WhatsApp Web flow, because the user can complete passkey verification in the browser.

The problem is that with WAHA, especially GOWS, there is no visible/interactable WhatsApp Web screen where the user can complete the passkey step.

Could you confirm whether this passkey flow is supported by any WAHA engine, such as WEBJS or WPP, or whether it is currently unsupported?

Image Image

dioneiserino avatar Jun 30 '26 12:06 dioneiserino

+1

romeumc avatar Jun 30 '26 12:06 romeumc

+1

stormdust avatar Jun 30 '26 12:06 stormdust

+1

exclusiveticsc-lab avatar Jun 30 '26 12:06 exclusiveticsc-lab

+1

digaodfreitas avatar Jun 30 '26 12:06 digaodfreitas

+1

WilliamSantos96 avatar Jun 30 '26 12:06 WilliamSantos96

+1

brunocicom avatar Jun 30 '26 12:06 brunocicom

+1

joaoAPina avatar Jun 30 '26 12:06 joaoAPina

+1

olavomachadoshibata avatar Jun 30 '26 12:06 olavomachadoshibata

+1

vhiperdev avatar Jun 30 '26 12:06 vhiperdev

+1

higorrezend avatar Jun 30 '26 12:06 higorrezend

+1

GabSouzaDev avatar Jun 30 '26 12:06 GabSouzaDev

+1

SirGabreu avatar Jun 30 '26 12:06 SirGabreu

+1

carlossouza-algoricca avatar Jun 30 '26 12:06 carlossouza-algoricca

+1

trojantm avatar Jun 30 '26 12:06 trojantm

+1

rafaelmarrichi avatar Jun 30 '26 13:06 rafaelmarrichi

+1

Jheff-ls avatar Jun 30 '26 13:06 Jheff-ls

Even after removing the access key, I'm prompted to create one when I try to connect: Image

WilliamSantos96 avatar Jun 30 '26 13:06 WilliamSantos96

+1

vicentemarciot27 avatar Jun 30 '26 13:06 vicentemarciot27

Primeiro vai depender da whatsmeow!

bergpinheiro avatar Jun 30 '26 13:06 bergpinheiro

English


First it will depend on whatsmeow!

github-actions[bot] avatar Jun 30 '26 13:06 github-actions[bot]