How to use Firebase RealTime Database for Auth

Mon 10 2024
Written By - Aman Kumar Verma

#What is Firebase?

Firebase Realtime Database is a cloud-hosted NoSQL database that allows Developers to store and sync data in real time across all of their users' devices. Firebase is used by a variety of companies, including Airbnb, Coca-Cola and Pinterest. When Any one using Firebase as their database need they don't have to care about the backend the backend is provided by Firebase.

#How to use Firebase for Auth?

Before going on the Auth, use must have to know what is Auth . Auth or Authentication is the process by which a person or system verifies that they are who they say they are In simple way whenever you try to purchase any things through e-commerce website eg Amazon, Myntra you first have to signIn or have to Create an Account this is an example of real world Auth based scanerio.

  1. First you have to Create an Account on Firebase.
  2. After that you will transfer to Dashboard or if you not redirected to Dashboard then find go to console option.
  3. Then Search for add project Option and fill all details of your application or website.
  4. Then click on Project Overview --> Project Settings which is Present of left side panel.
  5. Scroll Down and copy your Configuration code and paste in your website.
  6. On left side panel their is an Authentication option click on it and choose auth provider for this case we will choose google for our auth provider.
  7. After Completing these process Know move to Integration in web topics.