firebase-auth-basics

Configure Firebase Authentication providers and implement sign-in flows across web, Android, iOS, and Flutter.

Updated May 5, 2026
One-click install
npx skills add https://github.com/nikegeorgian-stack/otgruzka-tovara --skill firebase-auth-basics-nikegeorgian-stack
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: firebase-auth-basics
Source: https://github.com/nikegeorgian-stack/otgruzka-tovara/tree/main/.cursor/skills/firebase-auth-basics
Command: npx skills add https://github.com/nikegeorgian-stack/otgruzka-tovara --skill firebase-auth-basics-nikegeorgian-stack

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Setting up Firebase Authentication involves many moving parts: enabling providers, configuring authorized domains, writing client SDK code for each platform, and securing data with auth-aware security rules. This Skill guides you through the entire workflow so users can sign in securely without trial-and-error debugging. ## Core Features & Use Cases - Provider Provisioning: Enable Email/Password, Google, anonymous, and other sign-in providers via the Firebase CLI (firebase.json auth block) or the Firebase Console, then deploy with firebase deploy --only auth. - Cross-Platform Client Setup: Reference guides cover the Web JS SDK, Android (Kotlin), iOS (Swift), and Flutter, including sign-up, sign-in, sign-out, and auth state listeners. - Security Rules Integration: Use request.auth and token claims in Firestore/Storage rules to restrict data access to signed-in users or document owners. - Use Case: You are building a web app that needs Google Sign-In. The Skill walks you through enabling the provider, adding localhost to authorized domains (avoiding the common auth/unauthorized-domain popup failure), and implementing signInWithPopup with an auth state observer. ## Quick Start Set up Firebase Authentication with Google Sign-In for my web app, including provider configuration and the client sign-in code.

Frequently Asked Questions about firebase-auth-basics

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

FAQPage Schema
How do I set up Firebase Authentication in my web app?▼

Enable providers in firebase.json or the Firebase Console, deploy with firebase deploy --only auth, then initialize the Auth SDK with getAuth(app). Use functions like signInWithPopup or createUserWithEmailAndPassword for sign-in flows.

How to enable Google Sign-In with Firebase CLI?▼

Add a googleSignIn block under auth.providers in firebase.json with your brand name, support email, and authorized redirect URIs. Then run firebase deploy --only auth so the backend generates the required OAuth clients.

Why does the Google Sign-In popup close immediately with unauthorized-domain?▼

The auth/unauthorized-domain error means your domain is not in the Authorized Domains list. Add the domain (e.g., localhost) in the Firebase Console or firebase.json, without protocol or port—use localhost, not http://localhost:9090.

Does Firebase Auth work with Flutter Web?▼

Yes, but google_sign_in 7.x requires initialize() with a clientId on web or the app hangs. A common workaround is skipping GoogleSignIn initialization on web and using Firebase Auth's signInWithPopup with GoogleAuthProvider instead.

How do I restrict Firestore data to signed-in users?▼

Use request.auth in security rules: allow read, write: if request.auth != null. For per-user data, compare request.auth.uid to a document field or path variable, or check token claims like email_verified.

Why does my iOS app crash when initializing Firebase Auth?▼

Calling Auth.auth() as an inline property before FirebaseApp.configure() runs causes a fatal crash. Initialize it lazily with lazy var auth = Auth.auth() or create the auth manager only after Firebase configuration completes.