-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example of use #4
Comments
Hi Edwin! Let me know how that goes! |
Hey! I just realized and I should've probably documented this better. The normal |
@acsant Could you please provide a demo on react-native using the invisible recaptcha? Thanks. |
|
Can you please share the function captureResponseToken() ? |
I have an error like: I got token "message" from funct onExecute but I couldn't define ApplicationVerifier. |
@ozturkilgim have you solved the problem, I am facing same issue. |
@ozturkilgim @naveedshahji
Also it might help binding that function to the current class's context by doing
in the constructor of your class. Make sure that you're saving a non-null response token as a result. |
@ozturkilgim thanks, please can you paste the code of full example here, I try it but maybe i am missing something. |
@naveedshahji
|
@ozturkilgim MY RENDER BLOCK
} |
My ReCaptcha isn't rendered either, here's my code and here's rendered output: containerStyle: any ideas what I am doing wrong ? is it possible that it might not render if domain url is incorrect? |
@ozturkilgim have you solved the problem ? i faced the same issue. But i used recaptcha v2 ( images challenge ) with firebase.auth.RecaptchaVerifier and worked fine when signInWithPhoneNumber.is it possible to signIn with recaptcha v3 without solving challenges? |
I couldn't solve it then I changed my way. I think its an important deficiency of expo. |
Hi @ozturkilgim. I believe that recaptcha-v3 was initially experimental and has recently been released as a stable. Because of this, I believe that firebase doesn't yet have support for it. Someone feel free to correct me if I am wrong. |
@MeherBa I am also trying to use recaptcha with firebase.auth.RecaptchaVerifier. Did you use react-native ?? |
@sarangvasishth here is an official blog for how you can do it Guard your web content from abuse, and for the mobile part use webview |
@MeherBa yeah, I have worked on it and created a response token using ""https://www.google.com/recaptcha/api.js" and site key, and verified response using "https://recaptcha.google.com/recaptcha/api/siteverify" and secret key. I assumed either response token or JSON object received after verifying recaptcha would work as a second argument (Appverifier) to function "signInWithPhoneNumber", but they don't. It would be really helpful, if you can tell me your implementation of firebase.auth.RecaptchaVerifier, which the link that you gave doesn't discuss. |
this could help you to move forward with captcha response: const captchaVerifier = { try { //with confirmationResult and SMS code you can register user |
I want to call recaptcha on button click how we can do that. Please provide example if anyone know. |
|
@acsant please how can i fire the onExecute function like on a button click, i'm using v3 and non of the functions are firing, the onReady and onExecute <ReCaptcha ref={this.recaptchaRef} containerStyle={{ height: 50, width: '100%', marginTop: 'auto', borderWidth: 1, }} siteKey={recaptchaKey} url='URL' onExecute={(token) => this.captureResponseToken(token)} reCaptchaType={1} onReady={() => console.log('capcha is ready')} />
onReady = (token) => {
console.log('from ready')
console.log(token)
}
captureResponseToken = (token) => {
console.log(token)
} |
Hi, |
@kingeke Did you find any solution? |
@Polombo98 no I didn't. |
I'm having the same issue, how to fire the onExecute? @acsant |
I am not receiving any response using this code.My code is :
Am i doing something wrong? |
hello can you help me if I'm using the component correctly, I can not render the view of the captcha
"react-native-recaptcha-v3": "0.0.13",
import ReCaptcha from 'react-native-recaptcha-v3'
onReady(value) {
console.log("Captcha value:", value);
}
onExecute(value) {
console.log("Captcha value:", value);
}
<ReCaptcha
containerStyle={{height:200}}
siteKey='SITEKEY'
url='DOMAIN'
action='verify'
reCaptchaType={2}
onReady={this.onReady.bind(this)}
onExecute={this.onExecute.bind(this)}
The text was updated successfully, but these errors were encountered: