Problem with reCAPTCHA

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

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:

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

error:

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

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

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

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:

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

error:


[/quote]