[Vuejs]-How to integrate AWS WAF Captcha in vuejs?

1👍

captchaExampleSuccessFunction(wafToken) is the success indicator. After you Render the captcha and the user completes it successfully captchaExampleSuccessFunction(wafToken) gets called which includes a token. It would not get called if the capture failed. If you want to do things between the successful captcha completion and you submitting data to your backend you can use AwsWafIntegration which has methods to check the token such as checkForceRefresh, fetch, forceRefreshToken, getToken, hasToken

Also reading your last line you say "I need to call captchaVerifiedFn() after user completes puzzle." cant you just move the captchaVerifiedFn outside of the fetch captchaExampleSuccessFunction(wafToken) { this.captchaVerifiedFn(); },

Leave a comment