summaryrefslogtreecommitdiff
path: root/Juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-10-02 23:14:54 +0300
committerGravatar Vitaly Takmazov2019-10-02 23:14:54 +0300
commit24c27ae7bea6cab4a6a857217344c33d701c831a (patch)
tree65b02d6a8eecf36036567d03acfcb2ff85b2f4bf /Juick
parentaa620a42c86187ca994de5c4e6ce902d1c46fca2 (diff)
Trying to remove credentials from synchronized storage
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];