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:
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.
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:
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