-
Notifications
You must be signed in to change notification settings - Fork 927
RecaptchaVerifier error when used together with AppCheck #6133
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
Comments
Hi @faizanabidnaqvi, thanks for the report. I was able to reproduce the behavior now. Let me check what we can do for this issue or bring someone here that can provide more context about it. I’ll update this thread if I have any information to share. |
I am currently experiencing this. Phone signin worked before app check. After app check, getting error "this.getAssertedRecaptcha(...).render is not a function". I unenforced app check for now since I need my website to require my users to register both email and phone. Hoping for a prompt resolution on this. |
Is there an update on this? |
any update on this issue? |
any update? |
It works with ReCaptchaV3Provider |
I used app check ReCaptchaV3Provider with phone signin. I had the same issue. So it worked for you? |
Yes it works with ReCaptchaV3Provider, but have the same error with ReCaptchaEnterpriseProvider. |
Thank you for reporting this issue. We're looking into it. Internal bug filed: b/237289338. |
I actually haven't been able to reproduce this by using the code in the first post and trying to fill in the blanks. I've tried localhost dev server, localhost prod build, and deployed Firebase hosting, and they all work. Does anyone have a minimal repro I can use? (preferably one that errors in localhost, but if not, just let me know what environment) |
When I had this error, I tried both v3 and enterprise. It doesn't even get to the verify code part. app check:
phone auth:
even if I used self.FIREBASE_APPCHECK_DEBUG_TOKEN = true; It still didn't work. a few weeks ago, v3 started working for me. But enterprise still doesn't work. |
I'm able to reproduce with App Check's |
Let me keep this open because there's still some uncertainty about if there is a bug with RecaptchaV3. |
This should be fixed in 9.9.1, if it's not the case, can you try a fresh reinstall to make sure nothing was left behind? (remove node_modules and yarn.lock and reinstall). If that doesn't work, can you provide a minimal repro? Similar comment from #6485 (comment):
It sounds like there may still be an issue but I'm unable to reproduce it on my end. I've tried swapping the order of App Check and RecaptchaVerifier and it doesn't seem to break it either. |
Thanks! That did fix it! |
I haven't heard back from the other person who reported it in #6485 so I'll close this again, can reopen if someone reports the problem again. |
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
When I use the RecaptchaVerifier on my site with AppCheck enabled, I get an error when I call the verify method on the RecaptchaVerifier. The error is as follows:
TypeError: this.getAssertedRecaptcha(...).render is not a function
This only happens when AppCheck is enabled; without AppCheck it behaves normally, that is, the verification goes through. Also, it doesn't happen in development or production when running at localhost with the emulator. Only occurs in the deployed code in firebase hosting.
Steps to reproduce:
Relevant Code:
In my root App.tsx file, appcheck is initialized this way
The RecaptchaVerifier component is as follows
The text was updated successfully, but these errors were encountered: