recaptcha-test-keys

1.0.1 • Public • Published

recaptcha-test-keys

The ReCaptcha widget keys for testing and development environments, but as a Node.js module with a name.

Provided by Google in the reCAPTCHA documentation.

Installation

npm install --save recaptcha-test-keys

Usage

const testKeys = require('recaptcha-test-keys')
 
grecaptcha.render('recaptcha-element', {
  sitekey: process.env.NODE_ENV === 'development'
    ? testKeys.sitekey
    : yourActualSiteKey()
})
 
// or
import { sitekey, secret } from 'recaptcha-test-keys'
 
// etc

API

testKeys.sitekey

Site key: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI

testKeys.secret

Secret key: 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe

License

Unlicense

Package Sidebar

Install

npm i recaptcha-test-keys

Weekly Downloads

59

Version

1.0.1

License

Unlicense

Unpacked Size

3.04 kB

Total Files

5

Last publish

Collaborators

  • goto-bus-stop