gatsby-plugin-recaptcha

1.0.5 • Public • Published

gatsby-plugin-recaptcha

Appends the reCAPTCHA .js snippet to your Gatsby site. Works great with react-recaptcha.

Installation

With npm:

npm install --save gatsby-plugin-recaptcha

Or with Yarn:

yarn add gatsby-plugin-recaptcha

Implementation

// In your gatsby-config.js
plugins: [`gatsby-plugin-recaptcha`]

Options

  • async: Add an async attribute to the script tag (default: true)
  • defer: Add a defer attribute to the script tag (default: false)
  • args: Append a string to the end of the script URL (default: "")
plugins: [
   {
      resolve: `gatsby-plugin-recaptcha`,
      options: {
         async: false,
         defer: false,
         args: `?onload=onloadCallback&render=explicit`,
      },
   },
]

Package Sidebar

Install

npm i gatsby-plugin-recaptcha

Weekly Downloads

3,559

Version

1.0.5

License

MIT

Unpacked Size

4.31 kB

Total Files

9

Last publish

Collaborators

  • amadoa
  • dalewray
  • codevelopit
  • mastaaaron
  • escasports
  • tbaustin
  • ken85rose