(auth?: Auth)
| 484 | _reject; |
| 485 | |
| 486 | constructor(auth?: Auth) { |
| 487 | const native = (auth as any)?.native; |
| 488 | if (native) { |
| 489 | this._native = FUIAuth.authUIWithAuth(native); |
| 490 | this._auth = auth; |
| 491 | } else { |
| 492 | if (defaultUI) { |
| 493 | return defaultUI; |
| 494 | } |
| 495 | defaultUI = this; |
| 496 | this._native = FUIAuth.defaultAuthUI(); |
| 497 | } |
| 498 | |
| 499 | this._delegate = FUIAuthDelegateImpl.initWithOwner(new WeakRef(this)); |
| 500 | this._native.delegate = this._delegate; |
| 501 | } |
| 502 | |
| 503 | static fromNative(ui: FUIAuth) { |
| 504 | if (ui instanceof FUIAuth) { |
nothing calls this directly
no test coverage detected