File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Top Open diff view settings Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Top Open diff view settings Original file line number Diff line number Diff line change @@ -294,7 +294,9 @@ - (NSDictionary *) getConfigForProvider:(NSString *)name
294294 NSMutableDictionary *cfg = [[manager getConfigForProvider: providerName] mutableCopy ];
295295
296296 DCTAuthAccount *existingAccount = [manager accountForProvider: providerName];
297- if (existingAccount != nil ) {
297+ NSString *clientID = ((DCTOAuth2Credential *) existingAccount).clientID ;
298+ if (([providerName isEqualToString: @" google" ] && existingAccount && clientID != nil )
299+ || (![providerName isEqualToString: @" google" ] && existingAccount != nil )) {
298300 if ([existingAccount isAuthorized ]) {
299301 NSDictionary *accountResponse = [manager getAccountResponse: existingAccount cfg: cfg];
300302 callback (@[[NSNull null ], @{
You can’t perform that action at this time.
0 commit comments