firebase/agent-skills · Official

firebase-auth-basics

Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.

All-time #275 Trending #350 Hot #6480 First seen Feb 11, 2026
8-week activity · all time api

Installation

$ npx skills add firebase/agent-skills --skill firebase-auth-basics

Summary

  • Set up Firebase Authentication with multiple identity providers and secure data access rules.
  • Supports email/password, phone number, anonymous, federated providers (Google, Facebook, Twitter, GitHub, Microsoft, Apple), and custom auth integration Each authenticated user receives a unique ID and JWT-based tokens (short-lived ID tokens and long-lived refresh tokens) for accessing Firebase services Enable providers via CLI for Google Sign In, anonymous, and email/password; use Firebase Console for additional federated providers Secure Firestore and Cloud Storage using request.auth in security rules to control data access based on user identity

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Security audits

Partner security reviews for this skill.

agent-trust-hub SAFE

Analyzed May 2, 2026

This skill provides documentation and code snippets for implementing Firebase Authentication. It utilizes official tools and libraries from Google/Firebase and does not contain any malicious patterns or security risks.

snyk LOW

Analyzed May 2, 2026

No issues detected.

socket Score 0.9000 · 0 alerts

Analyzed May 2, 2026

  • license 1
  • maintenance 1
  • quality 0.9
  • supply chain 1
  • vulnerability 1

0 alerts

Also in this package

Other skills from firebase/agent-skills · top by installs.

npx skills add firebase/agent-skills

Browse all from firebase/agent-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 437
License LICENSE
Default branch main
Open issues 10
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

CompatibilityThis skill is best used with the Firebase CLI, but does not require it. Firebase CLI can be accessed through `npx -y firebase-tools@latest`.
More metadata
category
Identity

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 4,158 B
  • docs SUMMARY.md 198 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 147,500 installs

SKILL.md

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": {
  "authorizedDomains": ["localhost"],
    "providers": {
      "anonymous": true,
      "emailPassword": true,
      "googleSignIn": {
        "oAuthBrandDisplayName": "Your Brand Name",
        "supportEmail": "[email protected]"
      }
    }
  }
}

[!NOTE] If the Google Sign-In popup opens and immediately closes with the
error [firebase_auth/unauthorized-domain], it means the domain is not
authorized. For local development, ensure localhost is included in the
Authorized Domains list in the Firebase Console or via the
authorizedDomains field in firebase.json. CRITICAL: Do NOT include the
protocol or port number in the Authorized Domains list (e.g., use localhost,
NOT http://localhost:9090).

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

  1. Select your project.
  2. Enable the desired Sign-in providers (e.g., Email/Password, Google).

2. Client Setup & Usage

Web See [references/clientsdkweb.md](references/clientsdkweb.md).

Flutter See [references/fluttersetup.md](references/fluttersetup.md). Android (Kotlin) See [references/clientsdkandroid.md](references/clientsdkandroid.md).

3. Security Rules

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

See [references/securityrules.md](references/securityrules.md).