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

175
Vistas
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 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