Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

438
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda