moai-platform-firebase-auth

Consolidate Firebase Authentication patterns for social, phone, and anonymous upgrades.

Updated Jan 16, 2026
One-click install
npx skills add https://github.com/yarang/fastapi-error-code --skill moai-platform-firebase-auth-yarang
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: moai-platform-firebase-auth
Source: https://github.com/yarang/fastapi-error-code/tree/main/.claude/skills/moai-platform-firebase-auth
Command: npx skills add https://github.com/yarang/fastapi-error-code --skill moai-platform-firebase-auth-yarang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive, modular approach to implementing and maintaining Firebase Authentication across web, mobile, and server environments, including social providers, phone authentication, anonymous upgrades, and custom claims RBAC.

Core Features & Use Cases

  • Social Authentication: Integrates Google, Facebook, Apple, Twitter/X, GitHub, and Microsoft sign-in providers across Web, iOS, Android, and Flutter.
  • Phone Authentication: Implements SMS-based sign-in with international formatting, reCAPTCHA, and platform-specific flows.
  • Anonymous to Permanent Upgrade: Enables upgrading anonymous accounts by linking credentials (email/password or federated providers).
  • Custom Claims & RBAC: Manages role-based access control via Admin SDK, with security rules integration and claim refresh strategies.
  • Admin & Server Workflows: Provides Cloud Functions examples for user management, auditing, and security-conscious patterns.
  • Emulator & Testing: Covers emulator configuration and testing strategies for secure, offline development.

Quick Start

  • Install and configure Firebase Admin SDK on the server, enable desired authentication providers, and wire in client SDKs for web/mobile. Use custom claims for authorization, and leverage Cloud Functions for admin tasks and auditing. Integrate Security Rules to enforce claim-based access control and consider using the Emulator Suite for local development and testing.

Frequently Asked Questions about moai-platform-firebase-auth

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

FAQPage Schema
How do I implement Firebase Authentication with social logins and phone verification?▼

Firebase Authentication integrates social providers like Google and Apple via client SDKs, while phone authentication uses SMS sign-in with reCAPTCHA and platform-specific flows across web and mobile environments.

How does custom claims RBAC work with Firebase Admin SDK?▼

Custom claims RBAC uses the Firebase Admin SDK to manage role-based access control server-side, integrating with security rules to enforce claim-based access and implementing refresh strategies for updated user permissions.

Can I upgrade anonymous Firebase accounts to permanent users?▼

Yes, anonymous accounts can be upgraded to permanent users by linking credentials like email/password or federated social providers, preserving user data while establishing full authentication.

What's the best way to manage Firebase Authentication workflows on the server?▼

Cloud Functions provide the optimal approach for Firebase Authentication server workflows, handling user management, auditing, and security-conscious admin patterns using the Firebase Admin SDK.

Does Firebase Authentication support local emulator testing for secure development?▼

Firebase Authentication supports the Emulator Suite for local development and testing, allowing developers to configure and test authentication flows offline with security rules and provider integrations.

How do I enforce security rules with Firebase Auth custom claims?▼

Firebase Auth custom claims enforce security rules by validating user roles server-side via Admin SDK, then applying claim-based access control rules that check token claims before granting data access.