diff options
-rw-r--r-- | Juick/APIClient.m | 2 |
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]; |