martinkasa / capacitor-secure-storage-plugin

Capacitor plugin for storing string values securly on iOS and Android.
MIT License
155 stars 56 forks source link

How to update value of key? #11

Closed GAGANsinghmsitece closed 4 years ago

GAGANsinghmsitece commented 4 years ago

I'm trying to update value of key(which already exist in storage). I tried, SecureStoragePlugin.set({key,newvalue}).then(success=>{console.log('looks like we did it')}); but it keeps on showing error. I don't want to first delete the key and then store it with updated value which i believe will increase the processing time. Is there any way of updating value of key without deleting it?

martinkasa commented 4 years ago

@GAGANsinghmsitece I have just tried it on Android and iOS as well and it works. Closing the issue, if it is still hapenning, reopen it please.