I have trouble understanding the user creation process.
I have a whitelist rule that call an API to get a list of authorized email address. In the rule, if the user email is not present in the whitelist I call the callback with an error:
return callback(new UnauthorizedError(‘Access denied.’));
However even though the login is canceled with the error, the user is still showing up in the Dashboard users list.
How can I prevent the user to be added to my users if the login is denied?