Skip to content Skip to sidebar Skip to footer

Google Recaptcha V3 - Widget Id When Loading Captcha Through Url

I am implementing the Recaptcha V3 on my site, and I could not find a proper way to reset the token if my request has failed. Following the documentation, to load the recaptcha I n

Solution 1:

As I understand from Recaptcha V3 you have to call execute again try to do it like this

let createNewToken = () => {
        grecaptcha.ready(function() {                   
            grecaptcha.execute('code', {action: 'homepage'}).then(function(token) {
                 console.log(token);
            });
         });        
}

Post a Comment for "Google Recaptcha V3 - Widget Id When Loading Captcha Through Url"