How to integrate AWS WAF Captcha in vuejs?

0

I'm trying to integrate aws captcha to my login screen.

the captcha renders, user completes puzzle and verify api is called successfully.

but how do I get the success status after puzzle completed

AwsWafCaptcha.renderCaptcha(container, {
      apiKey: "ApiKeyHere",
      onSuccess: captchaExampleSuccessFunction,
      onError: captchaExampleErrorFunction
    });



captchaExampleSuccessFunction(wafToken) {
        window.AwsWafIntegration.fetch(this.captchaVerifiedFn());
    },

I need to call captchaVerifiedFn() after user completes puzzle.

Any help would be appreciated.I need to call captchaVerifiedFn() after user completes puzzle.

Any help would be appreciated.

punith
asked 9 months ago444 views
1 Answer
0
profile pictureAWS
EXPERT
answered 9 months ago
  • Hi Didier, thanks for the response, I've implemented same as in the first link, but this "onSuccess: captchaExampleSuccessFunction" is only executing after rendering the captcha not after solving the puzzle.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions