recaptcha-test-keys
Version:
The ReCaptcha widget keys for testing and development environments.
46 lines (28 loc) • 854 B
Markdown
The ReCaptcha widget keys for testing and development environments, but as a
Node.js module with a name.
[][ref]
```
npm install --save recaptcha-test-keys
```
```js
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
```
Site key: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
Secret key: 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
[](./LICENSE)
[]: https://developers.google.com/recaptcha/docs/faq#id-like-to-run-automated-tests-with-recaptcha-v2-what-should-i-do