(auth?: Auth)
| 679 | } |
| 680 | |
| 681 | static provider(auth?: Auth) { |
| 682 | const provider = new PhoneAuthProvider(); |
| 683 | if (auth) { |
| 684 | provider._native = FIRPhoneAuthProvider.providerWithAuth(auth.native); |
| 685 | } else { |
| 686 | provider._native = FIRPhoneAuthProvider.provider(); |
| 687 | } |
| 688 | return provider; |
| 689 | } |
| 690 | |
| 691 | credential(verificationId: string, verificationCode: string) { |
| 692 | return AuthCredential.fromNative(this._native.credentialWithVerificationIDVerificationCode(verificationId, verificationCode)); |