@alexobc The code itself looks OK at a glance, however I might be missing something.
It seems to me that the error is from the call to wixCaptchaBackend.authorize() . You’ll need to debug your code to find out what’s wrong with the way you’re calling it.