summaryrefslogtreecommitdiff
path: root/Juick
diff options
context:
space:
mode:
Diffstat (limited to 'Juick')
-rw-r--r--Juick/APIClient.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Juick/APIClient.m b/Juick/APIClient.m
index c7e22cf..52b75ca 100644
--- a/Juick/APIClient.m
+++ b/Juick/APIClient.m
@@ -160,7 +160,7 @@
- (void)setCredential:(NSURLCredential *)credential {
if (credential) {
- [[NSURLCredentialStorage sharedCredentialStorage] removeCredential:_credential forProtectionSpace:self.apiProtectionSpace];
+ [[NSURLCredentialStorage sharedCredentialStorage] removeCredential:_credential forProtectionSpace:self.apiProtectionSpace options:@{NSURLCredentialStorageRemoveSynchronizableCredentials:@YES}];
[[NSURLCredentialStorage sharedCredentialStorage] setCredential:credential forProtectionSpace:self.apiProtectionSpace];
} else {
[[NSURLCredentialStorage sharedCredentialStorage] removeCredential:_credential forProtectionSpace:self.apiProtectionSpace];