Member-only story
Customizing Authentication Error Message for Firebase in ReactJS
Firebase documentation is well documented. However, there are few documentation that definitely needs the improvement or needs some clarification. One of them is the error messages generated from Authentication.
Let’s say I have a code like this that creates a new user with email and password by following this doc:
In Line 11, I am printing out the message for debugging so that the error can be printed out in Google Chrome Dev Tool’s console window. Here is an example below:
In the case above, we got “auth/wrong-password”, which is documented in the Firebase doc. However, what if we want to…