recaptcha-test-keys

The ReCaptcha widget keys for testing and development environments.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
recaptcha-test-keys
101.0.14 years ago7 years agoMinified + gzip package size for recaptcha-test-keys in KB

Readme

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

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: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQMXjiZKhI

testKeys.secret

Secret key: 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe

License

Unlicense