firebase-auth-basics
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.authin security rules to control data access based on user identity
Prerequisites
- Firebase Project: Created via
npx -y firebase-tools@latest projects:create(seefirebase-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.
More from firebase/agent-skills
firebase-basics
>-
50.8Kfirebase-hosting-basics
Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.
49.1Kfirebase-app-hosting-basics
Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.
48.8Kfirebase-data-connect
Builds and deploys Firebase SQL Connect (aka Firebase Data Connect) backends with PostgreSQL securely. Use when designing schemas with tables and relations, writing authorized queries and mutations, configuring real-time data updates, or generating type-safe SDKs. Use when you need a relational database with Firebase, or when the user mentions SQL Connect or Data Connect.
48.6Kdeveloping-genkit-js
Develop AI-powered applications using Genkit in Node.js/TypeScript. Use when the user asks about Genkit, AI agents, flows, or tools in JavaScript/TypeScript, or when encountering Genkit errors, validation issues, type errors, or API problems.
47.5Kdeveloping-genkit-dart
Generates code and provides documentation for the Genkit Dart SDK. Use when the user asks to build AI agents in Dart, use Genkit flows, or integrate LLMs into Dart/Flutter applications.
47.3K
More in Databases
supabase-postgres-best-practices
Postgres patterns for Supabase: schema design, RLS, indexing, and query performance
supabase/agent-skillssupabase
Supabase client: auth, storage, realtime, edge functions, and migrations
supabase/agent-skillsfirebase-firestore-enterprise-native-mode
Firestore at scale: sharding, composite indexes, and enterprise data modeling
firebase/agent-skillsconvex-quickstart
Convex schema, queries, mutations, and real-time reactivity patterns
get-convex/agent-skillsconvex-setup-auth
Authentication in Convex with Clerk, Auth0, and custom JWT providers
get-convex/agent-skills