Creating a login screen
One of the most common features that apps require when connecting to a backend service is an authentication (login) form. Firebase makes creating a secure user login form extremely easy, using the FirebaseAuth
service.
In this recipe, you will create a login form that uses a username and a password to authenticate the user. But instead of creating the user interface manually, we’ll use the firebase_ui_auth
package to build our login screen.
Getting ready
To follow along in this recipe, you need to complete the previous recipe, Configuring a Firebase app.
How to do it...
In this recipe, you will add authentication with a username and password, and you will allow users to sign up and sign in. Perform the following steps:
- From the Firebase console at https://console.firebase.google.com/, open your project and go to the Authentication option inside the Build section of the project’s menu, as shown in Figure 13.4....