ton-connect / sdk

SDK for TON Connect 2.0 — a comprehensive communication protocol between wallets and apps in TON ecosystem
Apache License 2.0
326 stars 92 forks source link

[UI-REACT]: Support multiple telegram accounts? #255

Open poloten4uk opened 2 months ago

poloten4uk commented 2 months ago

Your Question

Issue: Wallet Connection Persists Across Multiple Telegram Accounts in a Mini App

Description:

When switching between different Telegram accounts within a Mini App, the wallet connection seems to persist across all accounts, leading to unintended behavior. Specifically:

  1. I connect a wallet (e.g., TON Space) using one Telegram account.
  2. After switching to another Telegram account within the same Mini App, the connected wallet from the first account is still visible and accessible.
  3. If I disconnect the wallet on the second Telegram account, the wallet also gets disconnected for the first account, even though it should be independent.

Expected Behavior:

Actual Behavior:

Steps to Reproduce:

  1. Open Telegram Mini App with one Telegram account. (I can reproduce this issue not only in my app but also in Notcoin @notcoin_bot)
  2. Connect a wallet (e.g., TON Space).
  3. Switch to a different Telegram account within the same Mini App.
  4. Observe that the wallet from the first account is still connected.
  5. Disconnect the wallet on the second account.
  6. Switch back to the first account and observe that the wallet is now disconnected.

Environment:

Question:

Is this the expected behavior, or am I missing something in the implementation?

Context

No response

What have you tried so far?

No response

Relevant Code or Commands

No response

Documentation Check