FirebaseRecaptcha for web build isn't working

Please provide the following:

  1. SDK Version: 45
  2. Platforms(Android/iOS/web/all): Web
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

Hey,

I’m trying to do Firebase authentication via a Phone number. I’m using expo to compile down to a web app and I’m running into an issue trying to get FirebaseRecaptcha to work for the web. I noticed that the example shows that it only works on iOS and Android (or it at least seems to be that way).

Is there a way to get FirebaseRecaptcha to work with a web build?

  window.recaptchaVerifier = new RecaptchaVerifier(
    "recaptcha-container",
    {},
    getAuth()
  );

This is the example that Firebase uses for the web, and I do have access to window in the web build, but I don’t have a the recaptcha-container node it wants me to attach to.

Ideally I would just use the expo-firebase-recaptcha but that was breaking

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.