diff options
author | Vitaly Takmazov | 2019-10-02 23:14:54 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-10-02 23:14:54 +0300 |
commit | 24c27ae7bea6cab4a6a857217344c33d701c831a (patch) | |
tree | 65b02d6a8eecf36036567d03acfcb2ff85b2f4bf /Juick | |
parent | aa620a42c86187ca994de5c4e6ce902d1c46fca2 (diff) |
Trying to remove credentials from synchronized storage
Diffstat (limited to 'Juick')
-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]; |