Setup and Initialize Firebase Authentication
Follow the steps to Setup and Initialize Firebase Authentication for Web :
- Open firebase project console then navigate to
Build
>Authentication
dashboard and open it. - Click on
Get Started
and you will see 'sign-in provider' in Sign-in method tab. - Now setup firebase SDK and initialize firebase authentication.
FirebaseConfig.js
:import { initializeApp } from 'firebase/app';
import { getAuth } from 'firebase/auth';
const firebaseConfig = {
// ...
// ...
};
const app = initializeApp(firebaseConfig); // Initialize Firebase
export const auth = getAuth(app); // Initialize Firebase Authentication
Related Post
Email/Password
![How to Signup/ Login/ Logout User In Firebase Authentication ?](https://firebasestorage.googleapis.com/v0/b/fir-master-prod-41bac.appspot.com/o/public%2FdefaultThumbnails%2F5.webp?alt=media)
Phone number
![Firebase Phone Number Authentication](https://firebasestorage.googleapis.com/v0/b/fir-master-prod-41bac.appspot.com/o/public%2FdefaultThumbnails%2FAuthentication%2Ffirebase-phone-auth.webp?alt=media)
Email link (Passwordless)
![Authenticate User Using Email Link (Passwordless)](https://firebasestorage.googleapis.com/v0/b/fir-master-prod-41bac.appspot.com/o/public%2FdefaultThumbnails%2FAuthentication%2FEmail%20link%20PAsswordless.webp?alt=media)
Google OAuth
![Sign-In User using Google OAuth with Firebase](https://firebasestorage.googleapis.com/v0/b/fir-master-prod-41bac.appspot.com/o/public%2FdefaultThumbnails%2FAuthentication%2FGoogle%20OAuth.webp?alt=media)
Explore
Copyright © 2024, All rights reserved by Firebase Master