firebase-auth
SKILL.md
Firebase Auth
Authentication service with multiple providers.
When to Use
- Mobile app authentication
- Social login (Google, Apple, etc.)
- Phone number auth
- Anonymous users
Quick Start
import {
getAuth,
signInWithEmailAndPassword,
createUserWithEmailAndPassword,
} from "firebase/auth";
const auth = getAuth();
// Sign up
await createUserWithEmailAndPassword(auth, email, password);
// Sign in
await signInWithEmailAndPassword(auth, email, password);
// Current user
const user = auth.currentUser;
Core Concepts
Auth State
import { onAuthStateChanged } from "firebase/auth";
onAuthStateChanged(auth, (user) => {
if (user) {
console.log("Signed in:", user.uid);
} else {
console.log("Signed out");
}
});
Social Login
import { GoogleAuthProvider, signInWithPopup } from "firebase/auth";
const provider = new GoogleAuthProvider();
const result = await signInWithPopup(auth, provider);
const user = result.user;
ID Tokens
const token = await user.getIdToken();
// Verify on server
import { getAuth } from "firebase-admin/auth";
const decoded = await getAuth().verifyIdToken(token);
Best Practices
Do: Use onAuthStateChanged for state, verify tokens server-side Don't: Trust client claims without verification
References
Weekly Installs
1
Repository
g1joshi/agent-skillsGitHub Stars
7
First Seen
Feb 10, 2026
Installed on
mcpjam1
claude-code1
replit1
junie1
windsurf1
zencoder1