From 24c27ae7bea6cab4a6a857217344c33d701c831a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 2 Oct 2019 23:14:54 +0300 Subject: Trying to remove credentials from synchronized storage --- Juick/APIClient.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- cgit v1.2.3