You’ll need to enable Firebase Authentication in your project. We’ll go step-by-step using the Firebase Console to enable Google Sign-In, Email/Password, and Magic Link login methods.
Go to the Firebase Console
- Visit https://console.firebase.google.com.
- Select your project.
(Add screenshot: Firebase console project homepage)
Navigate to Authentication
In the left sidebar of your Firebase dashboard:
- Click “Create” → “Authentication”.
- Then click “Start”. This will open the Authentication setup panel.
(Add screenshot: Firebase dashboard with Authentication menu highlighted)
Enable Google Sign-In
- Under the Sign-in providers tab, click the “Add new provider” button or find Google in the list.
- Click Google → Enable the toggle.
- You’ll be asked to set up:
- A Project public name (this is the name shown to users when signing in).
- A Support email address (used for communication and recovery).
Once done, click Save.
(Add screenshot: Google authentication setup screen with public name and support email fields)
Enable Email and Password Login
Next, let’s allow users to log in using their email and password.
- Still in the Sign-in providers section, click Email/Password.
- Enable:
- ✅ Email/Password
- ✅ Email link (passwordless sign-in).
- Click Save.
(Add screenshot: Email/Password provider setup screen with toggles on)
Add your domain to authorized domains
- Add your domain to authorized domains. If you still didn't have a domain name, you can do this later.
- Localhost is authorized by default.
- Go to https://console.firebase.google.com.
- Select your project.
- Go to authentication -> Settings -> Authorized domains
- Add your domain: yourdomain.com
✅ Summary
You’ve successfully enabled authentication for your Firebase project! You can now allow users to sign in with:
- Google Sign-In
- Email and Password
- Magic Link (Passwordless)