How to test reCaptcha

Hi!
I added a captcha to my custom login page (classic) as described here: Add Bot Detection to Custom Login Pages. But actually I could not find a way to test if everything is working fine. The challenge response is always: {required: false}… I tried a VPN, Private-Windows, User-Agent, …

Is there a way to force the captcha-challenge? I just want to test if everything looks good and also want to test if the error-cases are handled correctly by myself.

Thank you and best wishes!

You can test invisible recaptcha by using Chrome emulator. You will need to add a new custom device (BOT) in developer tools, and set User Agent String to Googlebot/2.1 on Desktop . Then use the new BOT device when testing on your site to trigger the recaptcha authentication.

Hi Roslyn! Thank you for your help!
I tried your approach, but the response is still {required: false}…

Setup:

  • I’m using the auth0 branding section in the dashboard for the custom login page
  • I added the code from the example in the auth0 docs (Add Bot Detection to Custom Login Pages)
  • I have “auth0-js”: “9.14.0”, installed
  • I created an reCaptcha invisible via Google-reCaptcha-Account and enabled Bot Detection via the Auth0-Dashboard, also pasted the keys

Test:

  • Open LandingPage
  • Open Chrome Inspector (with BOT, Googlebot/2.1 on Desktop)
  • Click login, which redirects me to the login-page (custom domain)
  • Response from challenge {required: false} → not captcha is getting displayed.

Previous message deleted due to SPAM reasons.