Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
cordova-plugin-hcaptcha
Advanced tools
Cordova plugin for integrating the hCaptcha challenge Android SDK and web component API.
Plugin version | Cordova | Cordova Android | hCaptcha |
---|---|---|---|
1.0.0 | >= 10.0.0 | >= 10.0.0 | 4.0.0 |
cordova plugin add cordova-plugin-hcaptcha
cordova plugin add cordova-plugin-hcaptcha --variable HCAPTCHA_VERSION=4.0.0
cordova plugin add https://github.com/andreszs/cordova-plugin-hcaptcha
To invoke the hCaptcha 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.Hcaptcha.verify(onSuccess, onFailure, [args])
The following list contains configuration properties to allow customization of the hCaptcha verification flow.
parameter | type | default | description |
---|---|---|---|
siteKey | String | A site key from the hCaptcha dashboard, valid for any platform. | |
locale | String | AUTO | An ISO 639-1 language code to enforce a specific language. |
loading | Boolean | true | Show or hide the loading dialog. Android only. |
tokenExpiration | long | 120 | hCaptcha token expiration timeout in seconds. |
When the hCaptcha API executes the onSuccess()
method, the user has successfully completed the CAPTCHA challenge. However, this method only indicates that the user has solved the CAPTCHA correctly. You still need to validate the user's response token from your backend server.
To learn how to validate the user's response token, see Verify the User Response Server Side.
var onSuccess = function (strToken) {
console.log(strToken);
};
var onFailure = function (strError) {
console.warn(strError);
};
var args = {
siteKey: 'YOUR_SITE_KEY',
locale: 'es',
loading: true,
tokenExpiration: 120
};
cordova.plugins.Hcaptcha.verify(onSuccess, onFailure, args);
size
and theme
are not configurable since they are valid for the checkbox only.
FAQs
A cordova plugin for the hCaptcha API
We found that cordova-plugin-hcaptcha 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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.