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

Detect when user closes Freighter popup without connecting #1849

Open
ruveyda-kisla opened this issue Feb 12, 2025 · 0 comments
Open

Detect when user closes Freighter popup without connecting #1849

ruveyda-kisla opened this issue Feb 12, 2025 · 0 comments

Comments

@ruveyda-kisla
Copy link

Currently, when a user opens the Freighter popup to connect their wallet but closes it without selecting an account or approving the connection, there is no way to detect this event. This can lead to a poor user experience, as the application may remain in a "waiting" state indefinitely.

What problem does your feature solve?

  • There is no event or error to detect when a user closes the Freighter popup without approving or rejecting the connection request.
  • Applications relying on Freighter for authentication cannot handle this scenario properly, leading to UI issues where the app stays in a loading state.

What would you like to see?

  • A new event or error (e.g., "user_closed_popup") that signals when the user closes the popup without taking action.
  • This event should be accessible via the Freighter API so developers can handle it properly, such as resetting UI state or displaying a message.

What alternatives are there?

  • Currently, apps have to rely on timeouts or assume failure after a period of inactivity, which is not ideal.
  • Some other wallet providers explicitly return a "user_closed" error—having something similar in Freighter would improve handling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant