Skip to content

feat: persistence and reconnect flow#41

Closed
bernardev254 wants to merge 1 commit into
wraith-protocol:mainfrom
bernardev254:feat/Freighter_session_persistence_auto_reconnect
Closed

feat: persistence and reconnect flow#41
bernardev254 wants to merge 1 commit into
wraith-protocol:mainfrom
bernardev254:feat/Freighter_session_persistence_auto_reconnect

Conversation

@bernardev254
Copy link
Copy Markdown

summary

Implements Freighter persistence and reconnect flow.

changes:

  • Restores allowed Freighter sessions on reload via isConnected() + isAllowed().
  • Persists active Stellar network and updates signing, RPC, Horizon, labels, and explorer links.
  • Watches Freighter account/network changes using WatchWalletChanges.
  • Re-derives Stellar stealth keys on network switch without another signature prompt.
  • Clears keys safely on disconnect or account switch.
  • Syncs session updates and disconnects across tabs with BroadcastChannel.
  • Adds friendly Install Freighter and Approve in Freighter CTAs, with 2-second install polling for 30 seconds.
    closes Freighter session persistence + auto-reconnect #4

@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 2026

@bernardev254 is attempting to deploy a commit to the truthixify's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@bernardev254 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@truthixify
Copy link
Copy Markdown
Contributor

Closing as duplicate. Issue #4 is being handled in #38 which was opened first (currently waiting on a rebase).

If #38 doesn't include the AutoSign behavior on reconnect that's in this PR, that could be a quick follow-up PR once #38 lands. Worth flagging on issue #4 so the eventual final state captures both threads.

Other open Stellar Wave issues: https://github.com/wraith-protocol/demo/issues?q=is%3Aopen+label%3A%22Stellar+Wave%22

Thanks @bernardev254.

@truthixify truthixify closed this Jun 1, 2026
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

Successfully merging this pull request may close these issues.

Freighter session persistence + auto-reconnect

2 participants