Firebase Authentication
Learn to authenticate users with Firebase.
We'll cover the following...
Authenticating users with Firebase Authentication
Our application might need to have access to the user’s identity to save user data securely, give the user access to privileged features, or personalize their experience.
Firebase Authentication provides back-end service SDKs to authenticate users to our app. It supports authentication using phone numbers, passwords, and other identity providers like Google, X (formerly Twitter), and Meta.
In this lesson, we’ll learn how to authenticate our users with Google or an email and password with Firebase Authentication.
To use Firebase Authentication in our app, follow the steps below:
- Create a project on Firebase Console
- Enable Firebase Authentication on Firebase Console
- Add and initialize Firebase in the app
- Authenticate users
Creating a project on Firebase Console
Create a project by following the steps discussed in the previous lesson.
Enabling Firebase Authentication on Firebase Console
From within the Firebase Console:
Click the “Authentication” link on the sidebar.
Click the “Get Started” button on the next page.
Adding the email/password authentication provider
Click the “Email/Password” provider.
Turn on the “Enable” switch, then click the “Save” button.
Enabling the Google authentication provider
Go to the “Authentication” section of Firebase Console, select the “Sign-In method” tab, then click the “Add new provider” button.
Select the “Google” button.
Turn on the “Enable” switch.
Provide your ...