Skip to content

Commit

Permalink
fix(ios): Secure storage query
Browse files Browse the repository at this point in the history
Removes `kSecMatchLimit` from write and delete queries which was accidentally added.
  • Loading branch information
dnys1 committed Mar 9, 2024
1 parent 427c44b commit 45f1d87
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ final class SecureStoragePlatformDarwin extends SecureStoragePlatform {
final query = {
..._baseQuery(arena),
kSecAttrAccount: key.toCFString(arena),
kSecMatchLimit: kSecMatchLimitOne,
};
final gets = SecItemCopyMatching(query.toCFDictionary(arena), nullptr);
if (gets != errSecSuccess && gets != errSecItemNotFound) {
Expand Down Expand Up @@ -116,7 +115,6 @@ final class SecureStoragePlatformDarwin extends SecureStoragePlatform {
final query = {
..._baseQuery(arena),
kSecAttrAccount: key.toCFString(arena),
kSecMatchLimit: kSecMatchLimitOne,
};
try {
_check(
Expand Down

0 comments on commit 45f1d87

Please sign in to comment.