This is a cordova plugin for Google reCAPTCHA Ente rprise.
cordova plugin add /~https://github.com/Junker/cordova-plugin-recaptcha-enterprise.git --save
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));
initialize(key, timeout, success_callback, failure_callback)
execLogin(timeout, success_callback, failure_callback)
: Call action in Login workflowexecSignup(timeout, success_callback, failure_callback)
: Call action in Sign-up workflowexecCustom(action_name, timeout, success_callback, failure_callback)
: Call action in custom workflow
Args:
timeout
- amount of time in milliseconds.
- It only supports Android for now