Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

174
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!