I’m trying to do what I see at https://www.wix.com/corvid/reference/wix-users-backend.html
.catch( (error) => {
return {"approved": false, "reason": error};
} );
However I get the following:
Here’s my code, backend:
catch((err) => {
console.error("error caught in ...");
return { "succeeded": false };
});
and frontend:
.then((result) => {
console.log("in ... here are result and succeeded values:");
console.log(result);
console.log(result.succeeded);
I get the 2 console text printouts ok, but result is undefined and result succeeded cannot be read…
Thanks for your help