firebase-auth-basics

Configure Firebase Authentication providers, sessions, tokens, and security rules for web and mobile apps.

2|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/involvex/happy-vibecode --skill firebase-auth-basics-involvex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: firebase-auth-basics
Source: https://github.com/involvex/happy-vibecode/tree/main/.agents/skills/firebase-auth-basics
Command: npx skills add https://github.com/involvex/happy-vibecode --skill firebase-auth-basics-involvex

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps developers implement secure user authentication, provider configuration, and basic access control so applications can reliably identify users and protect data.

Core Features & Use Cases

  • Provider Setup: Enable email/password, Google, Facebook, Apple, GitHub, and other federated providers and configure redirect URIs and support emails.
  • Client Integration: Initialize the Auth SDK for web or mobile, connect to the local emulator, and handle sign-up, sign-in, and sign-out flows.
  • Security Rules & Tokens: Validate ID and refresh tokens, read request.auth in Firestore/Storage rules, and check email verification or custom claims for access control.
  • Use Case: Add Google Sign-In to a Next.js web app, connect to the Auth emulator for local testing, and enforce document ownership in Firestore rules.

Quick Start

Initialize Firebase Auth in your app, connect to the emulator if developing locally, and implement sign-in flows for the providers you need.

Frequently Asked Questions about firebase-auth-basics

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

FAQPage Schema
How do I implement Firebase Authentication for web and mobile apps?

Implement Firebase Authentication by initializing the Auth SDK for web or mobile, connecting to the local emulator for testing, and handling sign-up, sign-in, and sign-out flows for your required providers.

How do I enforce document ownership in Firestore security rules using auth?

Enforce document ownership in Firestore security rules by reading request.auth to validate user identity and checking email verification or custom claims for granular access control.

Can I use Firebase Auth with federated providers like Google, Apple, and GitHub?

Yes, Firebase Auth supports federated providers like Google, Apple, Facebook, and GitHub, allowing you to enable email/password, anonymous sign-in, and custom token integration for session handling.

How do I validate ID and refresh tokens during user authentication?

Validate ID and refresh tokens during user authentication by checking request.auth in your Firestore and Storage rules to ensure secure session handling and reliable user identity management.

What's the best way to test Firebase Auth locally before deploying?

Test Firebase Auth locally by connecting your initialized Auth SDK to the local Firebase emulator, allowing you to safely develop and verify sign-in flows and provider configurations offline.

Does Firebase Auth support custom claims for access control?

Yes, Firebase Auth supports custom claims for access control by allowing you to validate ID tokens and check custom claims within Firestore and Storage security rules to restrict data access.