Authentication with Firebase
Firebase provides an authentication service that app developers can use to authenticate their users. The Firebase Authentication service supports anonymous authentication, email and password-based authentication, and OAuth authentication with various OAuth providers, including Google, Facebook, and LinkedIn.
To implement authentication, we have to configure it in the Firebase console first. Follow these steps to configure the Firebase console:
- In your console, click on Build | Authentication in the sidebar.
- On the authentication page, click on the Get started button:
Figure 10.7 – Authentication – getting started
Initially, no providers are available.
- Click on the Email/Password button, then enable the Email/Password authentication method, and click the Save button.
Figure 10.8 – Email and password-based authentication
- Finally, click on the Add new...