[Feature]: Adding SecureStorage and DeviceStorage
Describe the solution you'd like
Add DeviceStorage to store data locally and SecureStorage to safely store data
up
up!
I see that DeviceStorage and SecureStorage are not yet implemented in the SDK, and I rely heavily on this package in my Telegram Mini App. I’d like to ask: • Is there any workaround to access deviceStorage while still using the SDK (e.g., via postEvent, invokeCustomMethod, or a known safe method)? • Is there an estimated timeline for when support for deviceStorage might be added?
Would really appreciate any pointers or temporary solutions, since my app needs local client-side persistence right now.
Thanks again! 🙏
up
Why it's not up yet?
Update: Actually it's up. Here is docs: https://docs.telegram-mini-apps.com/platform/methods#web-app-device-storage-get-key
I think this issue can be closed. Correct me if I'm wrong
Sorry, I was busy creating a new major version. SecureStorage and DeviceStorage will be implemented in the next week.
@dikobay the API you are referencing is the lowest level API. Yes, you can use it, but it is better to wait for the higher-level entities I mentioned - they will provide a more sensible API.
Implemented in @tma.js/[email protected]. Let me know if something works wrong.