diff --git a/ios/OAuthManager/OAuthManager.m b/ios/OAuthManager/OAuthManager.m index fdcdde8..b280343 100644 --- a/ios/OAuthManager/OAuthManager.m +++ b/ios/OAuthManager/OAuthManager.m @@ -294,7 +294,9 @@ - (NSDictionary *) getConfigForProvider:(NSString *)name NSMutableDictionary *cfg = [[manager getConfigForProvider:providerName] mutableCopy]; DCTAuthAccount *existingAccount = [manager accountForProvider:providerName]; - if (existingAccount != nil) { + NSString *clientID = ((DCTOAuth2Credential *) existingAccount).clientID; + if (([providerName isEqualToString:@"google"] && existingAccount && clientID != nil) + || (![providerName isEqualToString:@"google"] && existingAccount != nil)) { if ([existingAccount isAuthorized]) { NSDictionary *accountResponse = [manager getAccountResponse:existingAccount cfg:cfg]; callback(@[[NSNull null], @{