Last active
October 5, 2022 06:16
-
-
Save cp-sumi-k/14cece124d3bc1b1f1cd5f8a58f8fbf7 to your computer and use it in GitHub Desktop.
https://blog.canopas.com/integrate-google-recaptcha-enterprise-using-vue-js-and-golang-60a9335e80ac - recaptcha-init
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grecaptcha.enterprise.ready(() => { | |
grecaptcha.enterprise | |
.execute(import.meta.env.VITE_RECAPTCHA_SITE_KEY, { | |
action: "verify", | |
}) | |
.then(function (token) { | |
/** append token with formData and send it to backend API */ | |
}) | |
.catch(() => { | |
/** invalid reCaptcha score */ | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment