Closed Gamaroff closed 4 years ago
Seeing the same issue using plain Cordova without Ionic. Only seeing it on certain Android devices (OnePlus for example).
It seems to be because the encryption method changed from GCM to CCM. This means data stored in secure storage on the old plugin is not accessible with this one.
@Gamaroff Thank you for the reply! I will look into that.
@hvaughan3 Any update on this? We are also facing same issue here.
I haven't been able to fix it.
@praveenraji2i We still plan to catch the error, clear the credentials, and have them login again manually so we can resave with the new format. But I have not had a chance to try it yet.
Hey guys, Thanks for reporting it, can you check if this a possible duplicate or related to #34 ? There is a PR opened and pending review to partially fix this.
Yes this is a duplicate of #34 (or vice-versa? This one is older, i.e., was the "original"). GCM and CCM modes for AES are not compatible.
My app used the cordova-plugin-secure-storage plugin. We migrated to cordova-plugin-secure-storage-echo since the old plugin was failing on Android 10.
When running the app the plugin throws an exception when calling:
The exception is:
Any help is much appreciated.
The configuration on my Macbook is: