Skip to content

ReCaptcha

Follow these steps to integrate ReCaptcha with your SaaS application:

  1. Get Recaptcha Secret Key and Site Key from google captcha and keep version v2 invisible
  2. Configure Environment Variables:
    • Open your SaaS application’s environment configuration file (usually named .env).
    • Add the following lines:
      RECAPTCHA_SECRET_KEY=your_recaptcha_secret_key (add in backend)
      NEXT_PUBLIC_RECAPTCHA_SITE_KEY=your_recaptcha_site_key (add in frontend)
      Replace your_recaptcha_secret_key and your_recaptcha_site_key with the Secret Key and Site key obtained in step 1.

That’s it! You have successfully set up a captcha verification feature in your SaaS application.

by default Contact Us form is protected using ReCaptcha to prevent spam and bot submissions but feel free to add this to any feature that you are planning just in case you need an extra layer of security.