Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

439
Vistas
Error TypeError: undefined is not an object (evaluating 'verifier.verify')

After I click my touchableopacity I created in react native the button redirects to this function below, and when executed the function returns an error stating Error TypeError: undefined is not an object (evaluating 'verifier.verify') I don't understand why I am receiving this problem as I copied the code from the Firebase website https://firebase.google.com/docs/auth/web/phone-auth?authuser=0&hl=en#set-up-the-recaptcha-verifier. Thank you in advance for any answers!

function phoneSignIn(phoneNumber, navigation){
  // phoneNumber is a string ex: +11111111
  let appVerifier = window.recaptchaVerifier;
  signInWithPhoneNumber(auth, phoneNumber, appVerifier)
  .then((confirmationResult) => {
    window.confirmationResult = confirmationResult;
    navigation.navigate('Verification Code');
  }).catch((error) => {
    console.log("Error " + error);
    //returning error here
  });
}
about 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

Looks like you are using the Firebase Web SDK for react native, instead you should use a plugin for react native. Check this plugin for instance

about 4 years ago · Santiago Trujillo Denunciar

0

I realized from Tanays answer that I was using web instead of react native for firebase auth connections. Instead I found an expo snack https://snack.expo.dev/@feupp/firebase-phone-auth where I managed to get the auth working from react native!

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda