MCPcopy Index your code
hub / github.com/NativeScript/firebase / _handleAuth

Method _handleAuth

packages/firebase-ui/index.ios.ts:453–474  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

451 }
452
453 _handleAuth(error) {
454 const owner = this._owner?.get?.();
455 if (!owner._resolve && !owner._reject) {
456 return;
457 }
458 if (error) {
459 if (error.code === FUIAuthErrorCode.UserCancelledSignIn) {
460 owner._reject(FirebaseError.fromNative(null, 'User Cancelled'));
461 } else {
462 owner._reject(FirebaseError.fromNative(error));
463 }
464 // close controller after an error
465 owner._controller.dismissViewControllerAnimatedCompletion(true, () => {});
466 } else {
467 owner._resolve(IdpResponse.fromNative(this._authDataResult));
468 }
469
470 owner._reject = null;
471 owner._resolve = null;
472 owner._controller = null;
473 this._authDataResult = null;
474 }
475}
476
477export class UI implements IUI {

Calls 3

getMethod · 0.65
fromNativeMethod · 0.45

Tested by

no test coverage detected