Git Product home page Git Product logo

Comments (10)

Losapioj avatar Losapioj commented on August 29, 2024 1

I'm seeing this as well. why is this library sending you to the url when ReCaptcha is used?

from react-native-recaptcha.

acsant avatar acsant commented on August 29, 2024 1

@lapwil

Hello!

Same issue is happening to me

<ReCaptcha
  url={Config.API_URL}
  siteKey={Config.RECAPTCHA_SITE_KEY}
  action="verify"
/>

this is how I use the component with API_URL being the string to my api "http://....." and site key the key given by google admin console

when the captcha is loading, it just opens a browser and redirect to the url

I'm also seeing this issue now. As a temporary workaround, I appended "/" at the end of the the API_URL to prevent the redirect. I'll look into releasing an actual fix for this soon. Feel free to let me know if that workaround doesn't work for you.

from react-native-recaptcha.

acsant avatar acsant commented on August 29, 2024

Hello!

siteKey is supposed to be the key available on your google admin console. Could you try setting the url prop to the domain (also the one you're being redirected to) that is associated to that siteKey?

from react-native-recaptcha.

polpenaloza avatar polpenaloza commented on August 29, 2024

I did, url is pointing to my domain. Whenever the app loads, it takes me out of the app and loads the domain in a browser tab.

from react-native-recaptcha.

acsant avatar acsant commented on August 29, 2024

Hello! Could one of you ( @polpenaloza , @Losapioj ) please post a screenshot or an example of how you're using the ReCaptcha component? I'm having trouble reproducing this.

Thanks,

from react-native-recaptcha.

lapwil avatar lapwil commented on August 29, 2024

Hello!

Same issue is happening to me

<ReCaptcha
  url={Config.API_URL}
  siteKey={Config.RECAPTCHA_SITE_KEY}
  action="verify"
/>

this is how I use the component with API_URL being the string to my api "http://....." and site key the key given by google admin console

when the captcha is loading, it just opens a browser and redirect to the url

from react-native-recaptcha.

Tencryn avatar Tencryn commented on August 29, 2024

I don't know if this happens to me or not - I get a white screen when I include the Recaptcha. May be because the domain is not a live domain but a local one which is not hosted on my device so it's unable to load it.

from react-native-recaptcha.

sarangvasishth avatar sarangvasishth commented on August 29, 2024

<ReCaptcha
containerStyle={{height: 200, width: '100%', marginTop: 'auto', borderWidth: 1,}}
siteKey="Site_Key"
url='Domain_From_Admin_Console'
action='verify'
onReady={this.onReady.bind(this)}
onExecute={this.captureResponseToken.bind(this)}
/>

Any thoughts on how can i fix this ??
screenshot_20190307-063223_phoneauth

from react-native-recaptcha.

sfemat avatar sfemat commented on August 29, 2024

@sarangvasishth Try to add to your url parameter "http://"

from react-native-recaptcha.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.