douglasjunior / react-native-recaptcha-that-works

⚛ A reCAPTCHA bridge for React Native that works (Android and iOS)
MIT License
167 stars 33 forks source link

Question: Which domain should I put in baseUrl? #34

Closed daniimd closed 2 years ago

daniimd commented 2 years ago

It's the first time I'm using recaptcha and I have a doubt about what the baseUrl domain should be. I already set up a key, what else do I need to configure?

Thanks

douglasjunior commented 2 years ago

As described on README:

image

You need to set the same "domain" configured in reCAPTCHA console: https://developers.google.com/recaptcha/docs/settings#main_settings

Let's say that your project is running under "www.myproject.com" and you have configured this domain on the reCAPTCHA Console.

Your baseUrl will be:

   baseUrl="http://www.myproject.com"

If your project is "mobile only" and don't have a "web frontend", you can use the domain of your company.

This will make no difference, once the "domain" is used only to protect your key.