waha icon indicating copy to clipboard operation
waha copied to clipboard

[WEBJS/NOWEB/GOWS] Cannot link a consumer WhatsApp account — phone forces "Continue on WhatsApp Web" passkey step, linking never completes

Open RiahiPratama opened this issue 5 months ago • 7 comments

Summary

When trying to link a consumer WhatsApp account (regular WhatsApp app, not WhatsApp Business App), the phone displays a "Continue on WhatsApp Web" step that says a passkey may be required ("you may need to scan another QR code to use passkey"). The WAHA session generates the QR / pairing code, but after scanning, the linking never transitions to WORKING — the passkey confirmation step on the phone is never satisfied, and the session eventually errors out or stays stuck.

The same number links successfully and immediately through other channels (e.g. a mature third-party gateway) and through web.whatsapp.com in a real desktop browser (where the user completes the passkey with a platform authenticator / Touch ID). It fails only through WAHA's server-side engines, which have no authenticator to complete the passkey ceremony.

I'm filing this so it can be tracked, and to ask whether there is a known engine/config path (or upcoming patch) for consumer accounts now gated behind passkey device-linking.

Environment

WAHA image (pinned digest): devlikeapro/waha@sha256:f3c33e8e70a78eb37af4f4e2eb655849d42d8ffdc4b8254f9de38069e906a146 WAHA edition: CORE (not Plus) Version tag at pull time: latest (as of 2026-07-01) — [optional: replace with exact 2026.x.y shown in your dashboard] Engines tested: WEBJS, NOWEB, GOWS Host: Linux VPS (Docker), RAM/CPU healthy during all attempts (not a resource issue) Phone: Android, WhatsApp version 2.26.24.80 Account type: consumer WhatsApp (regular app), account is healthy and not banned (sends/receives normally on the primary phone)

Steps to reproduce

Start a session on a fresh CORE container (POST /api/sessions with {"name":"default","start":true}); confirm status becomes SCAN_QR_CODE. Retrieve the QR (dashboard or GET /api/screenshot). On the phone (consumer WhatsApp, v2.26.24.80): Linked Devices → Link a Device → scan the QR. The phone shows a bottom sheet: "Continue on WhatsApp Web / Keep the app open on both devices. You may need to scan another QR code to use passkey." Linking never completes: the WAHA session does not reach WORKING.

Expected result

The device links and the session reaches WORKING (as it did before WhatsApp introduced the passkey device-linking step).

Actual result

NOWEB: session stays unlinked; logs show connection errored, code 515, and repeated failed to ack notification. Never reaches WORKING. WEBJS: container boots Chromium (xvfb-run is working!), session sits at SCAN_QR_CODE; after scanning, the phone shows the "Continue on WhatsApp Web / passkey" step and linking never completes. GOWS: could not get a working session on CORE — POST /api/sessions/default/start returned Error: Not Found, and GET /api/sessions/default returned 404 Session not found. Pairing code path (NOWEB request-code): returns a valid 8-char code, but entering it via "Link with phone number" on the phone still routes to the same passkey step; linking does not complete.

Logs (observed)

NOWEB: INFO (NOWEBEngine): session:default - connected to WA INFO (NOWEBEngine): session:default - not logged in, attempting registration... [QR generated] ERROR (NOWEBEngine): session:default - failed to ack notification {"ackErr":{}} [eventually] connection errored / 515 / QR refs attempts ended

WEBJS: xvfb-run is working! [session stays at SCAN_QR_CODE; phone shows "Continue on WhatsApp Web" passkey step; no transition to WORKING]

GOWS: statusCode 404 — NotFoundException: Session not found at SessionService.getSession (/app/dist/core/services/SessionService.js)

[OPTIONAL — verify before posting] Some reports mention window.require(...).Cmd.refreshQR is not a function on WEBJS after recent WhatsApp Web internal changes. Run docker logs 2>&1 | grep -i refreshqr and paste the actual line here only if it appears in your logs. If it doesn't appear, delete this block — don't include unverified output.

What I've already ruled out

Not a resource issue — RAM/CPU healthy throughout. Not a stale image — reproduced on the latest image (digest above). Not account health — the same number links fine via web.whatsapp.com (human completes passkey) and via a third-party gateway. Not a single engine — reproduced (in different forms) across WEBJS, NOWEB, and GOWS.

Image

Question for maintainers

For consumer accounts now gated behind the passkey device-linking step, is there:

a supported engine/config path that can complete (or is expected to complete) this flow, or a tracked issue / planned patch for it?

If server-side engines fundamentally cannot satisfy the passkey ceremony for consumer accounts (no authenticator on the container side), it would help to document that clearly so users can choose the right path (e.g. WhatsApp Business App / Cloud API) without a long trial-and-error.

RiahiPratama avatar Jul 01 '26 08:07 RiahiPratama

This appears to be a duplicate of #2138 . It looks like the same issue is already being tracked there.

dioneiserino avatar Jul 01 '26 11:07 dioneiserino

+1

mcabral2510 avatar Jul 01 '26 19:07 mcabral2510

✅ Confirmed workaround for accounts stuck in per-connection passkey mode

If your number is in the aggressive Shortcake mode (428 on every connection attempt, even after using the browser-auth bridge from @familymachlin-git / #2676), here's what worked for us today:

  1. Delete your WhatsApp Business account entirely — Settings → Account → Delete my account.
  2. Register the same number in WhatsApp Messenger (the regular app, not Business).
  3. DO NOT reserve a username / link Instagram / link Facebook Business (these seem to be triggers of the aggressive rollout).

That's it. Pure Baileys 7.0.0-rc.13 with Browsers.appropriate('Chrome') → fresh QR → 515 (restart required, normal) → open → sending messages. No bridge needed.

Downsides: you lose groups, chat history, media. Groups don't restore even with backup (admins need to re-add you).

Theory: the per-connection passkey rollout seems to target Business accounts and accounts linked to Meta Business Suite. A fresh Personal registration on the same number escapes it — at least for now.

Tested today on a +55XXX number that had been in the 428 loop for 24h+. Same number, same SIM, just deleted the Business account and re-registered as Personal on WhatsApp Messenger.

Everything Diego (@diegofelipeee), @familymachlin-git, @gobeyondpty, @willianclic and @marcoscarraro shared here is gold and still works for accounts where you can complete the browser login. But if your browser itself refuses to complete login (Business accounts often can't), delete + recreate as Personal is the emergency exit.


⚠️ Before you nuke your account — MAKE A GROUP LIST

You will lose every group. Even the ones you administer. Even with backup restored. Admins need to re-add you one by one. Do this before deleting:

  1. Open every group you care about → screenshot the group info (name + admin numbers).
  2. If you're the sole admin of any group → promote someone else first, otherwise the group dies with your account.
  3. Save contacts of key admins in a separate note — you'll need to DM them from the new account to be re-added.
  4. Same for media / documents you might need later — export what matters, WhatsApp backup won't cover this reliably.

🪦 The graveyard of things we tried that FAILED miserably (~2 full days of pain)

Posting this so nobody else wastes time going down the same rabbit holes:

  1. Baileys pure QR → 428 instantly.
  2. Business → switch to WhatsApp Messenger (WITHOUT deleting) → still asks for passkey. The switch alone doesn't fix it, you have to nuke the account.
  3. Browser ID spoofing — tried Browsers.macOS('Desktop'), Browsers.windows('Desktop'), Browsers.ubuntu('Chrome'), Browsers.macOS('Safari'), default appropriate('Chrome') → all 428.
  4. Pairing code (8 digits) instead of QR → server closes the socket before you can even type it.
  5. whatsapp-web.js (Puppeteer) → the modal "Quick security check with Passkey" returns "Something went wrong" forever.
  6. Venom-bot → same thing, Puppeteer-based, same block.
  7. WPPConnect → same, ditto.
  8. webVersionCache: remote trick (@mehul-vekariya's fix) → unblocked it for some, for us reached the passkey modal but hit the same wall.
  9. puppeteer-extra-plugin-stealth → removed the "controlled by automation" bar but the passkey check still failed.
  10. Virtual WebAuthn authenticator via CDP (WebAuthn.addVirtualAuthenticator) → NotAllowedError — server rejects fake credentials (.get() with allowCredentials: [] requires a discoverable credential we don't have).
  11. caBLE / Hybrid Transport (cross-device passkey via Bluetooth) → requires Bluetooth LE on the PC. No BT adapter = dead end. Even with BT, it's a manual click per connection — not viable in production.
  12. Copy Chrome profile (7.8 GB!) to Puppeteer userDataDir → passkeys live in Google Password Manager and require active Sync — Sync doesn't survive the copy.
  13. Puppeteer connect via --remote-debugging-port=9222 with the real Chrome → Chrome ignored the flag because another process was alive, port never opened.
  14. Browser-auth bridge (@familymachlin-git technique) via Console script → creds extraction WORKED (Curve.verify OK, companion device correctly derived, 16 Noise candidates generated) → Baileys reached logging in... instead of attempting registration (progress!) → but server still killed the socket with 428 after ~200ms. Confirmed the aggressive rollout blocks even valid re-logins for Business accounts.
  15. Cycling through Noise candidates [0..7] → all 428.
  16. Fake network fingerprints, User-Agent shenanigans, hardcoded Web version pinning → nothing.
  17. Waited for a maintainer response on the mainline fork/PR → all still in REVIEW_REQUIRED limbo.
  18. Considered forking Baileys ourselves to implement Shortcake natively → mathematically impossible headless (WebAuthn requires a user gesture + real authenticator, that's the whole point of the spec).

At some point I was one Bluetooth USB dongle away from ordering it on Amazon just to test caBLE. Then I remembered @JoshAlfaro's comment saying only Business accounts were affected — deleted the account, recreated as Personal, connected on the first QR. 20 seconds. That easy.

Two days of engineering warfare killed by a 30-second setting change. 🪦 R.I.P. browser-auth bridge, we hardly knew ye.

— @Alexandre-Gavazzi

Alexandre-Gavazzi avatar Jul 01 '26 19:07 Alexandre-Gavazzi

+1

HuangDaHui avatar Jul 02 '26 05:07 HuangDaHui

Any news?

patron:PLUS

RogerioAmaral avatar Jul 02 '26 21:07 RogerioAmaral

+1

huangzhong0406 avatar Jul 03 '26 08:07 huangzhong0406

I deleted my account and created a new one normally, but it didn't help; the block is tied to the phone number. Once the security key is activated, it keeps asking for it even after switching back to a standard account.

nakamura-blip avatar Jul 04 '26 20:07 nakamura-blip