Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@graphcommerce/googlerecaptcha

Package Overview
Dependencies
Maintainers
2
Versions
597
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphcommerce/googlerecaptcha

This package makes it easy to add [Google Recaptcha v3](https://developers.google.com/recaptcha/docs/v3) to GraphCommerce. It allows you to load the Recatcha script conditionally on the page so it isn't initialized on all pages.

latest
Source
npmnpm
Version
9.0.4
Version published
Weekly downloads
638
30.74%
Maintainers
2
Weekly downloads
 
Created
Source

@graphcommerce/googlerecaptcha

This package makes it easy to add Google Recaptcha v3 to GraphCommerce. It allows you to load the Recatcha script conditionally on the page so it isn't initialized on all pages.

Configuration

  • Configure the following (configuration values) in your graphcommerce.config.js

  • Add X-Recaptcha header to your .meshrc.yml if it isn't there. example

Usage

If you have a form that uses GoogleRecaptcha make sure you are using one of ApolloErrorAlert, ApolloErrorFullPage and ApolloErrorSnackbar components. This will activate the Google Recaptcha plugins.

Troubleshooting

ReCaptcha validation failed, please try again
: Magento is configured correctly and this is an error coming from Google directly. You have misconfigured something on the Google side. Make sure the domains are set up correctly, etc.

FAQs

Package last updated on 27 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts