Ok I found the error. I should not be using
import wixUsers from 'wix-users'
Because ‘wix-users’ works only on the front end. Instead, I should be using ‘wix-users-backend’ as this is the package that works on the backend.
Ok I found the error. I should not be using
import wixUsers from 'wix-users'
Because ‘wix-users’ works only on the front end. Instead, I should be using ‘wix-users-backend’ as this is the package that works on the backend.