From the course: Building Production-Ready React Apps: Setup to Deployment with Firebase

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Authenticate and manage users from the application

Authenticate and manage users from the application

- Now we learned the steps to set up the Firebase auth JavaScript sdk, and let's look at the few requirements before getting started. So you should have added first Firebase to your JavaScript project. So that's one first requirement. Second, make sure that you have enabled Google as a sign in method in your Firebase console. For that, what you should do is go to your Firebase console then open Auth and select the sign in method from the tab, which is Google. Then save. Now, we want to implement the sign-in flow with the Firebase SDK so we can allow users to sign in and also sign out. So for that we're going to create an instance of Google Auth provider, and from there we're going to have a few methods like sign in, sign in with pop-up that's going to be one. We also need to create this object, which is get Auth. So we're going to be doing that from the firebase config remember. So let's go back to the code so we can…

Contents