Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/goto-bus-stop/hcaptcha-test-keys
The hCaptcha widget keys for testing and development environments, but as a Node.js module with a name.
https://github.com/goto-bus-stop/hcaptcha-test-keys
Last synced: about 22 hours ago
JSON representation
The hCaptcha 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/hcaptcha-test-keys
- Owner: goto-bus-stop
- License: unlicense
- Created: 2020-04-10T12:57:01.000Z (over 4 years ago)
- Default Branch: default
- Last Pushed: 2020-04-10T12:57:59.000Z (over 4 years ago)
- Last Synced: 2024-10-24T16:24:38.790Z (21 days ago)
- Language: JavaScript
- Homepage: https://npm.im/hcaptcha-test-keys
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# hcaptcha-test-keys
The [hCaptcha][] widget keys for testing and development environments, but as a
Node.js module with a name.[Provided by hCaptcha in their documentation.][ref]
## Installation
```
npm install --save hcaptcha-test-keys
```## Usage
```js
const testKeys = require('hcaptcha-test-keys')hcaptcha.render('hcaptcha-element', {
sitekey: process.env.NODE_ENV === 'development'
? testKeys.sitekey
: yourActualSiteKey()
})// etc
```## API
### `testKeys.sitekey`
Site key: `10000000-ffff-ffff-ffff-000000000001`### `testKeys.secret`
Secret key: `0x0000000000000000000000000000000000000000`## Related
- [recaptcha-test-keys][] - Google ReCaptcha test keys as a Node.js module## License
[Unlicense](./LICENSE)[hCaptcha]: https://hcaptcha.com/
[ref]: https://docs.hcaptcha.com/#integrationtest
[recaptcha-test-keys]: https://github.com/goto-bus-stop/recaptcha-test-keys