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 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-basics
Firebase setup, Firestore queries, security rules, and project configuration
firebase/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-skills