We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3fdcb4c + 1ae33ee commit c1fd721Copy full SHA for c1fd721
ios/OAuthManager/OAuthManager.m
@@ -294,7 +294,9 @@ - (NSDictionary *) getConfigForProvider:(NSString *)name
294
NSMutableDictionary *cfg = [[manager getConfigForProvider:providerName] mutableCopy];
295
296
DCTAuthAccount *existingAccount = [manager accountForProvider:providerName];
297
- if (existingAccount != nil) {
+ NSString *clientID = ((DCTOAuth2Credential *) existingAccount).clientID;
298
+ if (([providerName isEqualToString:@"google"] && existingAccount && clientID != nil)
299
+ || (![providerName isEqualToString:@"google"] && existingAccount != nil)) {
300
if ([existingAccount isAuthorized]) {
301
NSDictionary *accountResponse = [manager getAccountResponse:existingAccount cfg:cfg];
302
callback(@[[NSNull null], @{
0 commit comments