From what I read, Hooks can not be used to validate inputs because the response does not return to the caller through the API response. The last line in the documentation for Pre-user registration states: “The Pre-Registration Hook does not currently pass error messages to any Auth0 APIs.”
This seems like a very common use case. Any other suggestions?
Hello there all! As Markd mentioned, Hooks are definitely the way to go. We would recommend the pre-register hook. In the event the validation is done in the rule, it will only stop authentication attempts, not signups, meaning that the users will still be created.
Sorry for such delay in response! We’re doing our best in providing the best developer support experience out there, but sometimes the number of incoming questions is just too big for our bandwidth. Sorry for such inconvenience!