Account Linking & Provider Management
Let one user own a single account across multiple sign-in methods by linking and unlinking auth providers, handling collisions, and managing linked credentials safely.
The Multi-Provider Problem
The same person may sign in with email/password today and Google tomorrow. Without linking, Firebase could treat these as two separate accounts.
Account linking unifies multiple sign-in methods under one Firebase user (one uid).
How Linking Works
Linking attaches an additional credential to the currently signed-in user. The user keeps the same uid and data, but gains a new way to log in.
- Email/password can be linked to a social account
- Multiple social providers can coexist
All lessons in this course
- Phone Number Authentication
- Multi-Factor Authentication (MFA)
- Custom Claims & Security Rules
- Account Linking & Provider Management