FXKeychain
FXKeychain copied to clipboard
Added errors when keychain operations fail
Since #38 only returns parser errors, this is an expansion that returns errors when keychain operations fail.
I implemented this because I have edge cases where reading from keychain fails because the device is locked or is starting and it is more reliable to check the returned error than to look at the app state.
NSError *error = nil;
_authToken = [[FXKeychain defaultKeychain] objectForKey:kAuthTokenKey error:&error];
if ([error.domain isEqualToString:kFXKeychainErrorDomain] && error.code == errSecInteractionNotAllowed) {
// unable to load token, retry after a short pause
}
I would like to see this merged. Is this project dead?