Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Fix the data removal from the Keychain that fails
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliq committed Oct 11, 2017
1 parent ff531b8 commit 87af644
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Sources/Internal/SessionLocalStorage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ internal class KeychainWrapper {
class func removeData(forKey key: String) -> Bool {
let keychainQuery: [String: Any] = [kSecClassValue: kSecClassGenericPasswordValue,
kSecAttrServiceValue: KeychainServiceValue,
kSecAttrAccountValue: key,
kSecReturnDataValue: kCFBooleanTrue,
kSecMatchLimitValue: kSecMatchLimitOneValue]
kSecAttrAccountValue: key]
let status: OSStatus = SecItemDelete(keychainQuery as CFDictionary)
return (status == errSecSuccess)
}
Expand Down

0 comments on commit 87af644

Please sign in to comment.