Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/junker/cordova-plugin-recaptcha-enterprise
Cordova plugin for reCAPTCHA Enterprise
https://github.com/junker/cordova-plugin-recaptcha-enterprise
cordova cordova-plugin recaptcha recaptcha-enterprise
Last synced: about 1 month ago
JSON representation
Cordova plugin for reCAPTCHA Enterprise
- Host: GitHub
- URL: https://github.com/junker/cordova-plugin-recaptcha-enterprise
- Owner: Junker
- License: mit
- Created: 2024-02-22T05:40:24.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-07-13T01:06:08.000Z (4 months ago)
- Last Synced: 2024-10-15T17:24:57.618Z (about 1 month ago)
- Topics: cordova, cordova-plugin, recaptcha, recaptcha-enterprise
- Language: Java
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cordova Recaptcha Enterprise Plugin
This is a cordova plugin for Google reCAPTCHA Ente
rprise.## Installation
```
cordova plugin add https://github.com/Junker/cordova-plugin-recaptcha-enterprise.git --save
```## Usage
```javascript
window.plugins.recaptcha.initialize('key', 10000,
() => console.log('reCAPTCHA initialized!'),
err => console.error(err));window.plugins.recaptcha.execSignup(10000,
token => console.log('Token received:'+token),
err => console.error(err));```
## API
- `initialize(key, timeout, success_callback, failure_callback)`
- `execLogin(timeout, success_callback, failure_callback)`: Call action in Login workflow
- `execSignup(timeout, success_callback, failure_callback)`: Call action in Sign-up workflow
- `execCustom(action_name, timeout, success_callback, failure_callback)`: Call action in custom workflowArgs:
- `timeout` - amount of time in milliseconds.## Caveats
- It only supports Android for now
## Documentation
- https://cloud.google.com/recaptcha-enterprise/docs/instrument-android-apps#native-android
- https://cloud.google.com/recaptcha-enterprise/docs/reference/android/com/google/android/recaptcha/RecaptchaAction