[PR #68] [MERGED] update deprecated pairing code method with beta testing #69

Closed
opened 2026-02-27 10:25:49 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mimamch/wa-multi-session/pull/68
Author: @iniadil
Created: 12/20/2025
Status: Merged
Merged: 12/21/2025
Merged by: @mimamch

Base: masterHead: master


📝 Commits (2)

  • 2a64b75 added pairing code method (beta testing)
  • 4febaa9 Merge pull request #2 from iniadil/postgres

📊 Changes

2 files changed (+46 additions, -9 deletions)

View changed files

📝 readme.md (+12 -0)
📝 src/Socket/index.ts (+34 -9)

📄 Description

regarding on the official baileys: [bailyes](https://baileys.wiki/docs/socket/connecting#pairing-code-login)
added small delay on pairing code method and a check to ensure the code don't request multiple times, which should prevent the "Connection Closed" error.
image

isPairingCodeRequested -> Prevents race conditions / multiple requests

i've tested and works perfectly with maybe 1-3s code appear. but, we need more flow test to make sure the pairing code works.
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mimamch/wa-multi-session/pull/68 **Author:** [@iniadil](https://github.com/iniadil) **Created:** 12/20/2025 **Status:** ✅ Merged **Merged:** 12/21/2025 **Merged by:** [@mimamch](https://github.com/mimamch) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`2a64b75`](https://github.com/mimamch/wa-multi-session/commit/2a64b75e903c3ed97f9baf11800c669038f3c09b) added pairing code method (beta testing) - [`4febaa9`](https://github.com/mimamch/wa-multi-session/commit/4febaa9cbf65651637020e03493e97b815076ff9) Merge pull request #2 from iniadil/postgres ### 📊 Changes **2 files changed** (+46 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `readme.md` (+12 -0) 📝 `src/Socket/index.ts` (+34 -9) </details> ### 📄 Description regarding on the official baileys: [[bailyes](url)](https://baileys.wiki/docs/socket/connecting#pairing-code-login) added small delay on pairing code method and a check to ensure the code don't request multiple times, which should prevent the "Connection Closed" error. <img width="545" height="191" alt="image" src="https://github.com/user-attachments/assets/dc22b70f-6a77-498f-bf38-e72e6552d059" /> `isPairingCodeRequested` -> Prevents race conditions / multiple requests i've tested and works perfectly with maybe 1-3s code appear. but, we need more flow test to make sure the pairing code works. <img width="651" height="174" alt="image" src="https://github.com/user-attachments/assets/8672981b-eba3-461f-8b29-b13e07ab66d3" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem closed this issue 2026-02-27 10:25:49 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wa-multi-session-mimamch#69
No description provided.