Recommended function not working

Hi,

I was directed to the links below in reference to blocking site members without a pain subscription plan in place from signing in however the ‘wix-members-backend’ function throws up an error and advises its not recognised. Hs anyone else had any issues with this function?

blockByEmail - Velo API Reference - Wix.com
listOrders - Velo API Reference - Wix.com
Velo: Scheduling Recurring Jobs | Help Center | Wix.com

Thanks,
Kelly

Hello! Could you send us your code or take a screenshot of the error message?

Hi Emmy,

The code I am trying to use is import { authentication } from ‘wix-members-backend’. As advised on the link below. I have attached a copy of the error that it flags up.

blockByEmail - Velo API Reference - Wix.com

Any help you can give would be much appreciated.

Thanks,
Kelly

Hi Kelly!

It seems like you might be trying to use this module in your page code. wix-members-backend is for backend code, so try using this part of your code in a backend file (.jsw) instead and export the function you’re trying to use to your frontend.