firebase-auth-basics

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

Updated Aug 6, 2026
One-click install
npx skills add https://github.com/ferrarifankid04/ai-skills-public --skill firebase-auth-basics-ferrarifankid04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: firebase-auth-basics
Source: https://github.com/ferrarifankid04/ai-skills-public/tree/main/antigravity/plugins/firebase/skills/firebase_auth_basics
Command: npx skills add https://github.com/ferrarifankid04/ai-skills-public --skill firebase-auth-basics-ferrarifankid04

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Setting up Firebase Authentication involves many moving parts: enabling providers, deploying auth configuration, integrating client SDKs on multiple platforms, and writing 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, and anonymous auth via firebase.json and the Firebase CLI, or configure other providers in the Firebase Console. - Cross-Platform Client Setup: Reference guides cover Web (JavaScript), Android (Kotlin), iOS (Swift), and Flutter, including platform-specific pitfalls like Flutter Web hangs and iOS initialization crashes. - Security Rules Integration: Apply request.auth checks in Firestore and Storage rules to restrict data access by user identity. - Use Case: You are building a Flutter app that needs Google Sign-In on both mobile and web. This Skill walks you through enabling the provider, deploying the auth config, and implementing a platform-aware AuthService that avoids the google_sign_in 7.x web hang. ## Quick Start Set up Firebase Authentication with Google Sign-In for my web app, including the firebase.json configuration and client SDK 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 enable Google Sign-In with Firebase Authentication?

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. Alternatively, enable the Google provider directly in the Firebase Console under Authentication providers.

How to implement Firebase Auth sign-in on Android with Kotlin?

Add the firebase-auth dependency using the Firebase BoM in build.gradle.kts, initialize Firebase.auth in your Activity, and call signInWithEmailAndPassword or createUserWithEmailAndPassword. Check auth.currentUser in onStart to detect existing sessions.

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

The firebase_auth/unauthorized-domain error means your domain is not in the Authorized Domains list. Add the domain in the Firebase Console or firebase.json, using only the domain name like localhost without protocol or port.

Does google_sign_in 7.x work on Flutter Web?

google_sign_in 7.x requires initialize() with a clientId on web, otherwise the app hangs on a blank screen. The recommended workaround is skipping GoogleSignIn initialization on web and using Firebase Auth's signInWithPopup with GoogleAuthProvider instead.

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

Use request.auth in security rules: allow read, write: if request.auth != null restricts access to authenticated users. Compare request.auth.uid with a document path variable or field to enforce per-user ownership.

Why does my iOS app crash when calling Auth.auth()?

The crash occurs when Auth.auth() is initialized inline before FirebaseApp.configure() runs, such as in a SwiftUI @State property at the app root. Use lazy initialization or create the auth manager only after Firebase configuration completes.