Skip to content

Commit aca7600

Browse files
committed
fix(auth): extend the correct class
1 parent 39fa9dd commit aca7600

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/firebase-auth/index.android.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ function ensureClass() {
640640
}
641641

642642
@NativeClass
643-
class OnVerificationStateChangedCallbacksImpl extends OnVerificationStateChangedCallbacks {
643+
class OnVerificationStateChangedCallbacksImpl extends com.google.firebase.auth.PhoneAuthProvider.OnVerificationStateChangedCallbacks {
644644
_resolve;
645645
_reject;
646646

@@ -651,11 +651,8 @@ function ensureClass() {
651651
return global.__native(this);
652652
}
653653

654-
onVerificationFailed(error: any) {
655-
this._reject({
656-
message: error.getMessage(),
657-
native: error,
658-
});
654+
onVerificationFailed(error) {
655+
this._reject(FirebaseError.fromNative(error));
659656
}
660657

661658
onVerificationCompleted(credential: com.google.firebase.auth.PhoneAuthCredential) {

0 commit comments

Comments
 (0)