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
From the course: Building Production-Ready React Apps: Setup to Deployment with Firebase
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
(Locked)
Start with Firebase Authentication and select the provider2m 57s
-
(Locked)
Google Cloud Platform: Create new credentials3m 17s
-
(Locked)
Authenticate and manage users from the application5m 46s
-
(Locked)
Manage the state with the Context API: Component Provider5m 3s
-
(Locked)
Manage the state with the Context API: Custom hook5m 34s
-
(Locked)
Subscribe components to the context changes: User connected4m 59s
-
(Locked)
Create new documents with the user connected5m 26s
-
(Locked)
Secure your data in Cloud Firestore and Cloud Storage5m 43s
-
(Locked)
-
-
-
-