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

225
Views
Cómo implementar Google MFA con ReCaptchav3

Según los documentos https://cloud.google.com/identity-platform/docs/web/mfa , tenemos un ejemplo para reCaptchav2 pero cómo implementar MFA con reCaptchaV3 porque tenemos que pasar el verificador en algunas funciones como verificarPhoneNumber() pero que yo sepa, reCaptchav3 no devuelve un verificador.

Por ejemplo Aquí,

 var recaptchaVerifier = new firebase.auth.RecaptchaVerifier('sign-in-button', { 'size': 'invisible', 'callback': function(response) { // reCAPTCHA solved, you can proceed with phoneAuthProvider.verifyPhoneNumber(...). onSolvedRecaptcha(); } });

for RecaptchaVerifier method it returns a recaptchaVerifier which we need to pass to the verifyPhoneNumber() method as an second argument.

 var phoneAuthProvider = new firebase.auth.PhoneAuthProvider(); // Send SMS verification code. return phoneAuthProvider.verifyPhoneNumber(phoneInfoOptions, recaptchaVerifier) .then(function(verificationId) { // verificationId will be needed for enrollment completion. })

pero aquí, en el método de representación de Recaptcha v3, devuelve un widgetId que no puedo pasar al método de verificar el número de teléfono ().

 recaptchaWidgetId = grecaptcha.render('recaptcha-container', { sitekey: 'abcdefghijklmnopqrstuvwxy-1234567890abcd', callback: function (response) { console.log('response', response) resolver(response) }, })

Entonces, mi pregunta era si había alguna forma de obtener la referencia de recaptchaVerifier de RecapchaV3 para poder pasarla al método verificarPhoneNumber(). ¿O hay alguna otra forma de implementar esto?

about 4 years ago · Santiago Gelvez
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!