# Problem with reCAPTCHA

**URL:** <https://forum.wixstudio.com/t/problem-with-recaptcha/41844>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [May 27, 2022, 2:55am UTC](https://forum.wixstudio.com/t/problem-with-recaptcha/41844 "2022-05-27T02:55:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![phoenix](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@phoenix](https://forum.wixstudio.com/u/phoenix)\
**Post date:** [May 27, 2022, 2:55am UTC](https://forum.wixstudio.com/t/problem-with-recaptcha/41844/1 "2022-05-27T02:55:01Z")

</div>

I get “authorization failed” error in test mode and live mode, preview mode is working properly. Hoping to get any help soon.  
backend:

```javascript
export function registerMemberFunction(submissionRequest) {
    // Use authorize() to check the captcha token before submitting the form
    let errorResponse = {}

    return wixCaptcha.authorize(submissionRequest.token)
        .then(() => {
            return myRegisterMemberFunction(submissionRequest);
        })
        .catch(error => {
            console.log(error);
            if (error.type === 'insertion error') {
                throw error
            }
            errorResponse.status = 'error'
            errorResponse.type = 'authorization error'
            errorResponse.message = `Error: reCAPTCHA authorization failed: ${error}`
            throw errorResponse
        })
}

```

frontend:

```javascript
registerMemberFunction(submissionRequest)
        .then(async (result) => {
            console.log('result: ', result);
        })
        .catch((error) => {
            console.error('register error:', error);
            // $w('#captchaSignUp').reset();
            showError(error);
        })

```

error:

 ![](https://us1.discourse-cdn.com/wix/original/3X/f/e/fe2e4d52ea6513c7e147a77830eb1e7e3d05d33f.png)

---

<div class="post-metadata">

**Author:** ![info8571](https://avatars.discourse-cdn.com/v4/letter/i/b3f665/32.png) [@info8571](https://forum.wixstudio.com/u/info8571)\
**Post date:** [May 29, 2022, 6:00am UTC](https://forum.wixstudio.com/t/problem-with-recaptcha/41844/2 "2022-05-29T06:00:20Z")

</div>

Hi Phoenix, I am having the same issue. Did you manage to fix this?

---

<div class="post-metadata">

**Author:** ![phoenix](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@phoenix](https://forum.wixstudio.com/u/phoenix)\
**Post date:** [May 30, 2022, 2:26am UTC](https://forum.wixstudio.com/t/problem-with-recaptcha/41844/3 "2022-05-30T02:26:15Z")

</div>

No, I still haven’t found a way to fix it.

---

<div class="post-metadata">

**Author:** ![PHOENIX\_3519875](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/phoenix_3519875/32/97295_2.png) [@PHOENIX\_3519875](https://forum.wixstudio.com/u/PHOENIX_3519875)\
**Post date:** [September 26, 2024, 9:29am UTC](https://forum.wixstudio.com/t/problem-with-recaptcha/41844/4 "2024-09-26T09:29:42Z")

</div>

I get “authorization failed” error in test mode and live mode, preview mode is working properly. Hoping to get any help soon.  
backend:

```javascript
export function registerMemberFunction(submissionRequest) {
    // Use authorize() to check the captcha token before submitting the form
    let errorResponse = {}

    return wixCaptcha.authorize(submissionRequest.token)
        .then(() => {
            return myRegisterMemberFunction(submissionRequest);
        })
        .catch(error => {
            console.log(error);
            if (error.type === 'insertion error') {
                throw error
            }
            errorResponse.status = 'error'
            errorResponse.type = 'authorization error'
            errorResponse.message = `Error: reCAPTCHA authorization failed: ${error}`
            throw errorResponse
        })
}

```

frontend:

```javascript
registerMemberFunction(submissionRequest)
        .then(async (result) => {
            console.log('result: ', result);
        })
        .catch((error) => {
            console.error('register error:', error);
            // $w('#captchaSignUp').reset();
            showError(error);
        })

```

error:

 ![](https://us1.discourse-cdn.com/wix/original/3X/f/e/fe2e4d52ea6513c7e147a77830eb1e7e3d05d33f.png)  
[/quote]
