1.2.0
This release replaces errors which made assumptions about what happened in the keychain, without knowing for sure.
The TIMKeychain
now reports the correct errors directly from the keychain.
The following error cases was removed:
TIMEncryptedStorageError.failedToStoreInKeychain
TIMEncryptedStorageError.failedToLoadDataInKeychain
TIMEncryptedStorageError.failedToStoreLongSecretViaBiometric
TIMEncryptedStorageError.failedToLoadLongSecretViaBiometric
And was replaced by:
TIMEncryptedStorageError.keychainFailed(TIMKeychainError)
public enum TIMKeychainError : Error, LocalizedError {
/// Failed to store data
case failedToStoreData
/// Failed to load data
case failedToLoadData
/// Authentication failed for data retrieve (e.g. TouchID/FaceID)
case authenticationFailedForData
}