vue-programmatic-invisible-google-recaptcha
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "vue-programmatic-invisible-google-recaptcha", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A simple invisible Google reCAPTCHA component focused solely on programmatic invocation.", | ||
@@ -5,0 +5,0 @@ "author": "John Datserakis <johndatserakis@gmail.com>", |
@@ -41,2 +41,6 @@ # vue-programmatic-invisible-google-recaptcha | ||
- Load the Google reCAPTCHA library using the provided `script` tag. | ||
- Whenever you'd like, invoke the reCAPTCHA using `this.$refs.invisibleRecaptcha1.execute()` method (replacing `invisibleRecaptcha1` with the `ref` name you set). | ||
- Google will either decide to show a challange or not. Either way, you'll get the `recaptchaToken` in the registered `recaptchaCallback` event. Make sure to register for that. | ||
- Use that token to verify in your backend. | ||
- Call the method again if you'd like to get a new token. | ||
@@ -43,0 +47,0 @@ ### Usage Example |
1018276
144