FirebaseEmailAuthUI/Sources/FUIConfirmEmailViewController.m [273:304]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    if (error) {
      [self decrementActivity];
      if (result) {
        result(nil, error);
      }

      [self dismissNavigationControllerAnimated:YES completion:^{
        [self.authUI invokeResultCallbackWithAuthDataResult:nil URL:nil error:error];
      }];
      return;
    }

    [self.auth signInWithCredential:credential
                         completion:^(FIRAuthDataResult *_Nullable authResult,
                                      NSError *_Nullable error) {
        [self decrementActivity];
        if (result) {
          result(authResult.user, error);
        }

        if (error) {
          [self.authUI invokeResultCallbackWithAuthDataResult:nil URL:nil error:error];
        } else {
          [self dismissNavigationControllerAnimated:YES completion:^{
            [self.authUI invokeResultCallbackWithAuthDataResult:authResult URL:nil error:error];
          }];
        }
      }];
    }];
}

@end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



FirebaseEmailAuthUI/Sources/FUIEmailEntryViewController.m [348:378]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    if (error) {
      [self decrementActivity];
      if (result) {
        result(nil, error);
      }

      [self dismissNavigationControllerAnimated:YES completion:^{
        [self.authUI invokeResultCallbackWithAuthDataResult:nil URL:nil error:error];
      }];
      return;
    }

    [self.auth signInWithCredential:credential
                         completion:^(FIRAuthDataResult *_Nullable authResult,
                                      NSError *_Nullable error) {
      [self decrementActivity];
      if (result) {
        result(authResult.user, error);
      }

      if (error) {
        [self.authUI invokeResultCallbackWithAuthDataResult:nil URL:nil error:error];
      } else {
        [self dismissNavigationControllerAnimated:YES completion:^{
          [self.authUI invokeResultCallbackWithAuthDataResult:authResult URL:nil error:error];
        }];
      }
    }];
 }];
}
@end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



