Summary
sdk/src/wallet/freighter.adapter.ts connects to the Freighter extension. After a page reload, the SDK loses the wallet connection and the user must click "Connect" again. Freighter supports an isConnected check that can be used to auto-reconnect.
What to do
- On
FreighterAdapter construction (or in connect()), call Freighter's isConnected() API.
- If already connected, retrieve the public key and set the internal state without showing a permission prompt.
- Emit a
reconnected event on the adapter so the client's WalletProvider can update state.
- Store the last connected wallet type (e.g.
'freighter') in localStorage and attempt auto-reconnect on AppProviders mount.
- Write a test that simulates a page reload scenario with a pre-connected Freighter.
Acceptance criteria
- After a page reload, a previously connected Freighter wallet reconnects without user interaction.
- Auto-reconnect does not show a Freighter permission prompt.
Summary
sdk/src/wallet/freighter.adapter.tsconnects to the Freighter extension. After a page reload, the SDK loses the wallet connection and the user must click "Connect" again. Freighter supports anisConnectedcheck that can be used to auto-reconnect.What to do
FreighterAdapterconstruction (or inconnect()), call Freighter'sisConnected()API.reconnectedevent on the adapter so the client'sWalletProvidercan update state.'freighter') inlocalStorageand attempt auto-reconnect onAppProvidersmount.Acceptance criteria