firebase-auth-basics

Configure Firebase Authentication providers, client SDKs, and security rules for apps.

2|Updated Mar 7, 2025
One-click install
npx skills add https://github.com/AbdelrhmanUZaki/KnowledgeNuggets --skill firebase-auth-basics-abdelrhmanuzaki
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: firebase-auth-basics
Source: https://github.com/AbdelrhmanUZaki/KnowledgeNuggets/tree/main/2-setup/shared/gemini/config/plugins/firebase/skills/firebase_auth_basics
Command: npx skills add https://github.com/AbdelrhmanUZaki/KnowledgeNuggets --skill firebase-auth-basics-abdelrhmanuzaki

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires firebase-tools, and includes references (resource) components.

What problem does it solve? Setting up user authentication in an app involves many moving parts: enabling sign-in providers, configuring OAuth clients, integrating platform SDKs, and securing data access. This Skill guides you through the complete Firebase Authentication setup so users can sign in securely without guesswork. ## Core Features & Use Cases - Provider Provisioning: Enable Email/Password, Google Sign-In, and Anonymous auth via the Firebase CLI, or configure additional providers like Apple and GitHub in the Firebase Console. - Client SDK Integration: Follow platform-specific setup guides for Web, Flutter, and Android (Kotlin) to wire sign-in flows into your app. - Security Rules: Protect Firestore and Cloud Storage data using request.auth in security rules. - Use Case: You are building a Flutter app that needs Google Sign-In. Use this Skill to configure the provider in firebase.json, deploy the auth config with the Firebase CLI, and integrate the Flutter SDK. ## Quick Start Set up Firebase Authentication with Google Sign-In and email/password login for my web app.

Frequently Asked Questions about firebase-auth-basics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enable Firebase Authentication providers from the command line?▼

Add an auth block to firebase.json specifying providers like anonymous, emailPassword, or googleSignIn, then run npx firebase-tools deploy --only auth. Only Google Sign-In, anonymous, and email/password can be enabled via CLI; other providers require the Firebase Console.

How to add Google Sign-In to a Firebase app?▼

Configure the googleSignIn provider in firebase.json with your brand display name, support email, and authorized redirect URIs, then deploy with the Firebase CLI. This auto-generates the necessary OAuth clients for your app platforms.

Which sign-in providers does Firebase Authentication support?▼

Firebase Auth supports email/password, federated providers like Google, Facebook, Twitter, GitHub, Microsoft, and Apple, phone number SMS authentication, anonymous guest accounts, and custom auth for integrating existing systems.

Why is my Firebase auth provider not working after editing firebase.json?▼

Editing firebase.json alone does not activate providers. You must run npx firebase-tools deploy --only auth to push the configuration to the Firebase backend so OAuth clients are generated for your platforms.

How do I secure Firestore data based on signed-in users?▼

Use request.auth in Firestore or Cloud Storage security rules to check the authenticated user's uid and claims. The skill's security rules reference covers common patterns for restricting reads and writes to authenticated users.