Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
cordova-plugin-recaptcha-enterprise
Advanced tools
A cordova plugin for the reCAPTCHA Enterprise Android and Web API
Cordova plugin to implement the score-based Google reCAPTCHA Enterprise API on android and browser platforms.
Plugin version | Cordova | cordova-android | minSdkVersion | ReCaptcha |
---|---|---|---|---|
1.0.0 | >= 10.0.0 | >= 8.0.0 | 19 | 18.2.1 |
cordova plugin add cordova-plugin-recaptcha-enterprise
cordova plugin add cordova-plugin-recaptcha-enterprise --variable RECAPTCHA_VERSION=18.2.1
cordova plugin add https://github.com/andreszs/cordova-plugin-recaptcha-enterprise
⚠ Note that using ReCaptcha 18.5.0 or newer will enforce a minSdk level of 21.
To invoke the reCAPTCHA API, you call the verify()
method. Usually, this method corresponds to the user's selecting a UI element, such as a button, in your activity.
cordova.plugins.Recaptcha.verify(onSuccess, onFailure, [args])
args | Object with siteKeyAndroid and optional siteKeyWeb strings |
---|---|
siteKeyAndroid | String: A score-based Android key from the GCC. Required for the Android platform. |
siteKeyWeb | String: A score-based Website key from the GCC. Optional for the browser platform. |
⚠ Keys created with the legacy v3 Admin Console do not work with the Enterprise API unless they are upgraded from the Google Cloud Console.
For any type of reCAPTCHA key integration (checkbox or score), you must create an assessment from your backend by submitting the generated token to the assessment endpoint. reCAPTCHA processes the submitted token and reports the token's validity and score.
var onSuccess = function (strToken) {
console.log(strToken);
};
var onFailure = function (strError) {
console.warn(strError);
};
var args = {};
args.sitekeyAndroid = YOUR_ANDROID_KEY_ID;
args.sitekeyWeb = YOUR_WEBSITE_KEY_ID;
cordova.plugins.Recaptcha.verify(onSuccess, onFailure, args);
verify()
could return Internal Error.
FAQs
A cordova plugin for the reCAPTCHA Enterprise Android and Web API
We found that cordova-plugin-recaptcha-enterprise demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.