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

177
Visualizações
Firebase Phone Auth not working in deployment

Phone Auth is working locally but when the app is deployed the phone auth isnt working. When i enter my number and click to receive otp , i run into a error.

POST https://identitytoolkit.googleapis.com/v1/accounts:sendVerificationCode?key=AIzaSyDAcA6ooS6Rzg0jlAItTbWxM3ADJqCX2lE 400

this is my code:

getOTP(){
  this.recaptchaVerifier = new RecaptchaVerifier('phone-verify',
   {size: 'invisible'}, this.local_auth)

   let vnumber = this.verify.value.number.slice(1)
   vnumber = '+27' + vnumber
   console.log(vnumber)

   signInWithPhoneNumber(this.local_auth, vnumber, this.recaptchaVerifier)
   .then((confirmation) => {

     localStorage.setItem('verificationId',JSON.stringify(confirmation.verificationId))

   }).then((response) => {
     console.log(response)
   })
   .catch((err) => {
     console.log(err.messge)
     setTimeout(() => {
       window.location.reload()}, 5000)
   })
}

any ideas or advice or solutions would be welcomed...

about 4 years ago · Juan Pablo Isaza
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