-
Notifications
You must be signed in to change notification settings - Fork 718
Open
Labels
type: bugSomething isn't workingSomething isn't working
Description
Describe the bug
After refreshing the page, applications using coinbase-wallet-sdk may incorrectly treat the wallet as already connected based on cached or persisted session state. However, the underlying provider session is not always fully re-established, which can cause subsequent requests to fail even though the UI indicates an active connection.
Steps
- Go to a web app that uses
coinbase-wallet-sdkand shows a “connected” state when a wallet session exists. - Connect Coinbase Wallet and confirm requests (e.g.,
eth_accounts,eth_chainId) succeed. - Refresh the browser page (or close and reopen the tab) and let the app auto-initialize the SDK again.
- Observe that the UI may show the wallet as “connected” immediately based on cached/session state.
- Try sending a request (e.g.,
eth_sendTransactionorpersonal_sign) without manually reconnecting. - See that the request can fail because the underlying session/provider is not actually active, or the SDK requires a fresh handshake.
Expected behavior
After a refresh, the SDK should either (a) re-establish the session reliably before reporting “connected”, or (b) report a disconnected state until the provider is fully ready. Apps should not end up in a “connected but unusable” state where requests fail unexpectedly.
Version
No response
Additional info
No response
Desktop
No response
Smartphone
No response
Metadata
Metadata
Assignees
Labels
type: bugSomething isn't workingSomething isn't working