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]: Add storage managment #241

Open
w1tsky opened this issue Aug 19, 2024 · 1 comment
Open

[UI]: Add storage managment #241

w1tsky opened this issue Aug 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@w1tsky
Copy link

w1tsky commented Aug 19, 2024

Is your feature request related to a problem?

Currently, there is no consistent way to save sessions other than using local storage, which cannot be easily managed. The IStorage interface is only available when using the SDK, not the UI package.

Describe the solution you'd like

Ideally, there should be an IStorage interface implemented in the @tonconnect/ui package, providing an alternative way to save sessions, rather than relying solely on browser local storage.

Describe alternatives you've considered

As an alternative, it's possible to manually read and save these local storage keys on the backend when the wallet is connected:

ton-connect-storage_bridge-connection
ton-connect-ui_last-selected-wallet-info
ton-connect-storage_http-bridge-gateway::https://bridge.ton.space/bridge
ton-connect-ui_wallet-info
ton-connect-ui_preferred-wallet

Afterward, we can manually set these keys with the values retrieved from the backend, overriding the values set by the UI package, which is not reliable.

Additional context

No response

@w1tsky w1tsky added the enhancement New feature or request label Aug 19, 2024
@Samotaa
Copy link

Samotaa commented Aug 22, 2024

it would be nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants