Skip to content

1.2.0

Compare
Choose a tag to compare
released this 25 Feb 11:15
· 38 commits to main since this release
5197b5a

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
}