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

Recaptcha always fail #66

Closed hassanzadeh closed 1 week ago

hassanzadeh commented 1 week ago

I'm trying to use this in my expo react native app, and the ref.current.open() always lead to onError call.


<ReCaptcha
        ref={captchaRef}
        siteKey={RECAPTCHA_SITE_KEY}
        baseUrl={SITE_URL}
        onVerify={onVerify}
        onError={() => {
          Alert.alert('Error', 'reCAPTCHA failed. Please try again.');
        }}
      />
douglasjunior commented 1 week ago

It's working with the online demo right now, please double-check your siteKey and baseUrl.

Demo: https://snack.expo.dev/@douglasjunior/react-native-recaptcha-that-works