firebase-authentication-patterns
Installation
SKILL.md
Firebase Authentication Patterns
Overview
Firebase Authentication provides backend services for authenticating users with email/password, OAuth providers (Google, GitHub, etc.), and anonymous authentication.
Authentication Providers
Email/Password Authentication
Sign Up:
import { createUserWithEmailAndPassword } from 'firebase/auth';
import { auth } from '@/lib/firebase/client';
export async function signUp(email: string, password: string, displayName: string) {
try {
const userCredential = await createUserWithEmailAndPassword(auth, email, password);