Socket
Socket
Sign inDemoInstall

@graphcommerce/googlerecaptcha

Package Overview
Dependencies
0
Maintainers
2
Versions
429
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
854
decreased by-19.05%
Maintainers
2
Created
Weekly downloads
 

Readme

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

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

  2. 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

Last updated on 19 Apr 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc