From 3a8802aa20d37fe6f504b0e0179eeaf3ff17359b Mon Sep 17 00:00:00 2001 From: Stephan Diederich Date: Wed, 11 Sep 2013 16:44:28 +0200 Subject: [PATCH] also compare auth type as the authToken changes with the type this should not be necessary, but for the sake of completeness put it there. --- Classes/BITAuthenticator.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/BITAuthenticator.m b/Classes/BITAuthenticator.m index a11f9af3f3..a6dd86acd5 100644 --- a/Classes/BITAuthenticator.m +++ b/Classes/BITAuthenticator.m @@ -565,7 +565,7 @@ static NSString* const kBITAuthenticatorDidSkipOptionalLogin = @"BITAuthenticato #pragma mark - Property overrides - (void)setAuthenticationToken:(NSString *)authenticationToken withType:(NSString*) authenticationTokenType { NSParameterAssert(nil == authenticationToken || nil != authenticationTokenType); - if(![self.authenticationToken isEqualToString:authenticationToken]) { + if(![self.authenticationToken isEqualToString:authenticationToken] || ![self.authenticationTokenType isEqualToString:authenticationTokenType]) { [self willChangeValueForKey:@"installationIdentification"]; if(nil == authenticationToken) { [self removeKeyFromKeychain:kBITAuthenticatorAuthTokenKey];