Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/goto-bus-stop/recaptcha-test-keys
The ReCaptcha widget keys for testing and development environments, but as a Node.js module with a name.
https://github.com/goto-bus-stop/recaptcha-test-keys
Last synced: about 22 hours ago
JSON representation
The ReCaptcha widget keys for testing and development environments, but as a Node.js module with a name.
- Host: GitHub
- URL: https://github.com/goto-bus-stop/recaptcha-test-keys
- Owner: goto-bus-stop
- License: unlicense
- Created: 2017-02-23T19:24:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-10T12:42:24.000Z (over 4 years ago)
- Last Synced: 2024-10-24T16:24:45.003Z (21 days ago)
- Language: JavaScript
- Homepage: https://npm.im/recaptcha-test-keys
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
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
```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
```## API
### `testKeys.sitekey`
Site key: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
### `testKeys.secret`
Secret key: 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
## License
[Unlicense](./LICENSE)
[ref]: https://developers.google.com/recaptcha/docs/faq#id-like-to-run-automated-tests-with-recaptcha-v2-what-should-i-do