Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
poloten4uk opened this issue Sep 10, 2024 · 0 comments
Open
1 task done

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

poloten4uk opened this issue Sep 10, 2024 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@poloten4uk
Copy link

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:

  • Each Telegram account should have its own independent wallet connection.
  • Switching to a different Telegram account should prompt for a new wallet connection if one has not already been established for that account.
  • Disconnecting a wallet on one account should not affect the wallet connection status on another account.

Actual Behavior:

  • Wallet connections persist across multiple Telegram accounts within the same Mini App session.
  • Disconnecting a wallet on one account also disconnects it for the second account.

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:

  • Telegram Mini App
  • TON Connect SDK (via @tonconnect/ui-react)
  • Multiple Telegram accounts (same device)

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

  • Yes, I have checked the documentation.
@poloten4uk poloten4uk added the question Further information is requested label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants