File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ - (void)autoUpgradeAccountWithProviderUI:(id<FUIAuthProvider>)providerUI
296296 };
297297 NSError *mergeError = [FUIAuthErrorUtils mergeConflictErrorWithUserInfo: userInfo
298298 underlyingError: error];
299- [self completeSignInWithResult: nil
299+ [self completeSignInWithResult: authResult
300300 error: mergeError
301301 presentingViewController: presentingViewController
302302 callback: callback];
@@ -336,6 +336,11 @@ - (void)autoUpgradeAccountWithProviderUI:(id<FUIAuthProvider>)providerUI
336336 callback (nil , error);
337337 }
338338 }
339+ } else {
340+ [self completeSignInWithResult: authResult
341+ error: nil
342+ presentingViewController: presentingViewController
343+ callback: callback];
339344 }
340345 }];
341346}
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ + (NSError *)mergeConflictErrorWithUserInfo:(NSDictionary *)userInfo
3232 if (underlyingError != nil ) {
3333 errorInfo[NSUnderlyingErrorKey ] = underlyingError;
3434 }
35+ errorInfo[NSLocalizedDescriptionKey ] = @" Unable to merge accounts. Check the userInfo dictionary"
36+ @" for the auth credential of the logged-in account." ;
3537 return [self errorWithCode: FUIAuthErrorCodeMergeConflict userInfo: [errorInfo copy ]];
3638}
3739
You can’t perform that action at this time.
0 commit comments