In this chapter, we will build our second component. We will create a login page, which will be similar to the signup page. We will also add more functionalities to services. We will use Email/Password authentication to log in the user in. User details are already added to the Firebase database during the signup process. We will retrieve the user details from Firebase and pass them to the user profile page. We will also handle common error scenarios, as this will reinforce the concept.
The following topics will be covered in this chapter:
- Adding login functionalities to existing services
- Reusing the domain model
- Creating a login template
- Error handling for login
- Creating login components
- Resetting password