Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
firebase avatar

Firebase Auth Basics

  • 115k installs
  • 390 repo stars
  • Updated July 27, 2026
  • firebase/agent-skills

firebase-auth-basics is a Firebase agent skill that configures Firebase Authentication sign-in methods, user management, and security rules for developers who need secure identity and data access in Firebase-backed apps.

About

Guides Firebase Authentication setup including user provisioning, identity providers, token management, and security rules. Covers CLI-based setup for basic providers and console setup for advanced ones. Requires firebase-basics first.

  • Covers email/password, federated (Google, GitHub, etc.), phone, anonymous, and custom auth
  • Provides security rules templates for Firestore and Storage using request.auth patterns
  • Includes SDK setup references for web, Flutter, and Android clients

Firebase Auth Basics by the numbers

  • 115,114 all-time installs (skills.sh)
  • +5,780 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #5 of 4,386 Backend & APIs skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/firebase/agent-skills --skill firebase-auth-basics

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs115k
repo stars390
Security audit3 / 3 scanners passed
Last updatedJuly 27, 2026
Repositoryfirebase/agent-skills

How do you add Firebase Authentication to an app?

Implement user authentication and authorization using Firebase Auth

Who is it for?

Developers with an existing Firebase project who need sign-in, user management, and auth-gated database rules.

Skip if: Teams still creating the Firebase project, deploying static hosting only, or building auth without any Firebase backend.

When should I use this skill?

User needs Firebase sign-in, user management, OAuth providers, or security rules for auth-protected data access.

What you get

Auth provider configuration, client sign-in integration, and Firestore or Realtime Database security rules.

  • auth provider config
  • security rules
  • sign-in integration

Files

SKILL.mdMarkdownGitHub ↗

Prerequisites

  • Firebase Project: Created via npx -y firebase-tools@latest projects:create (see firebase-basics).
  • Firebase CLI: Installed and logged in (see firebase-basics).

Core Concepts

Firebase Authentication provides backend services, easy-to-use SDKs, and ready-made UI libraries to authenticate users to your app.

Users

A user is an entity that can sign in to your app. Each user is identified by a unique ID (uid) which is guaranteed to be unique across all providers. User properties include:

  • uid: Unique identifier.
  • email: User's email address (if available).
  • displayName: User's display name (if available).
  • photoURL: URL to user's photo (if available).
  • emailVerified: Boolean indicating if the email is verified.

Identity Providers

Firebase Auth supports multiple ways to sign in:

  • Email/Password: Basic email and password authentication.
  • Federated Identity Providers: Google, Facebook, Twitter, GitHub, Microsoft, Apple, etc.
  • Phone Number: SMS-based authentication.
  • Anonymous: Temporary guest accounts that can be linked to permanent accounts later.
  • Custom Auth: Integrate with your existing auth system.

Google Sign In is recommended as a good and secure default provider.

Tokens

When a user signs in, they receive an ID Token (JWT). This token is used to identify the user when making requests to Firebase services (Realtime Database, Cloud Storage, Firestore) or your own backend.

  • ID Token: Short-lived (1 hour), verifies identity.
  • Refresh Token: Long-lived, used to get new ID tokens.

Workflow

1. Provisioning

Option 1. Enabling Authentication via CLI

Only Google Sign In, anonymous auth, and email/password auth can be enabled via CLI. For other providers, use the Firebase Console.

Configure Firebase Authentication in firebase.json by adding an 'auth' block:

{
  "auth": {
    "providers": {
      "anonymous": true,
      "emailPassword": true,
      "googleSignIn": {
        "oAuthBrandDisplayName": "Your Brand Name",
        "supportEmail": "support@example.com",
        "authorizedRedirectUris": ["https://example.com"]
      }
    }
  }
}

CRITICAL: After configuring firebase.json, you MUST deploy the auth configuration to the Firebase backend for the changes to take effect. This is essential for auth providers like Google Sign-In, email/password, etc. to auto-generate the necessary OAuth clients for your app platforms. Run:

npx -y firebase-tools@latest deploy --only auth
Option 2. Enabling Authentication in Console

Enable other providers in the Firebase Console.

1. Go to the https://console.firebase.google.com/project/_/authentication/providers 2. Select your project. 3. Enable the desired Sign-in providers (e.g., Email/Password, Google).

2. Client Setup & Usage

Web See references/client_sdk_web.md.

Flutter See references/flutter_setup.md. Android (Kotlin) See references/client_sdk_android.md.

3. Security Rules

Secure your data using request.auth in Firestore/Storage rules.

See references/security_rules.md.

Related skills

Forks & variants (1)

Firebase Auth Basics has 1 known copy in the catalog totaling 1.3k installs. They canonicalize to this original listing.

How it compares

Pick firebase-auth-basics after firebase-basics project setup; pick firebase-hosting-basics when the next step is CDN deployment.

FAQ

What must exist before firebase-auth-basics?

firebase-auth-basics expects a Firebase project created via firebase-tools, typically using the firebase-basics skill, plus CLI login through npx -y firebase-tools@latest before configuring providers and rules.

Does firebase-auth-basics handle hosting deployment?

firebase-auth-basics focuses on Authentication and security rules only. Deploy static or SPA assets with the firebase-hosting-basics skill after auth is configured.

Is Firebase Auth Basics safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.