1

I am trying to follow the tutorial for implementing firebase phone authentication into my react expo app. When I click the 'send verification code' button, it redirects to the ReCaptcha and I can solve it. When I click the 'confirm' button of the ReCaptcha it shows an error: Error: undefined is not an object (evaluating 'auth.tenantId')

I created a project in the firebase console of course and added everything to the firebaseConfig. What does this error mean, where could it have happended and how could I solve it?

1 Answer 1

1

Looks like I forgot to hand in the auth variable to the PhoneAuthProvider:

const phoneProvider = new PhoneAuthProvider(auth);

1
  • I am not using Phone authentication. then why its coming to me ? Jan 24, 2022 at 15:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.