Handling Registration Errors
In this lesson, we'll learn how to generate custom errors.
We'll cover the following...
It’s time to handle the errors when the registration fails. According to the documentation for the createUserWithEmailAndPassword
method, Firebase will provide error codes as to why the registration failed. We’re going to keep things simple by creating one message to handle all errors from the request.
First, we need to tell ...