Skip to content

Commit 4760d10

Browse files
Update secure-storage.md (#1859)
Fix incorrect logic when removing a key from legacy storage on Android. The old logic cleared all preferences instead of removing the singular key as intended. The new logic now only removes the desired key.
1 parent f780faa commit 4760d10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/migration/secure-storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class LegacySecureStorage
6767
bool result = false;
6868

6969
#if ANDROID
70-
Preferences.Clear(Alias);
70+
Preferences.Remove(key, Alias);
7171
result = true;
7272
#elif IOS
7373
KeyChain keyChain = new KeyChain();

0 commit comments

Comments
 (0)