Skip to content

Firebase Authentication alternatives

In short

Firebase Authentication alternatives matter most when sign-in has to outlive the Google Cloud project it was born in.
  • The stack is moving off Google Cloud and identity is the piece that will not come.
  • A second client — a native app, a partner integration — needs standard OIDC rather than a Firebase SDK.
  • Auth state is entangled with Firestore rules and Cloud Functions in ways that now constrain the product.
SingleSign compared with Firebase Authentication
 SingleSignFirebase Authentication
Standalone of any cloud projectYesNo
Any standard OIDC client libraryYesNo
Firestore rules read auth state directlyNoYes
Anonymous accounts that upgrade laterNoYes
SMS / phone sign-in handled for youNoYes
You hold user recordsNoYes
Per-app consent the user can seeYesNo

What moving off Firebase Authentication actually involves

  1. 1

    Find everything reading the Firebase token

    Firestore security rules, Cloud Functions triggers and Analytics user properties all read Firebase auth state. Each one is a place the migration has to touch, and this list is usually longer than expected.

  2. 2

    Swap the client SDK for an OIDC library

    Firebase auth calls are replaced with a standard Authorization Code with PKCE flow. Any conformant OIDC library works, on any platform.

  3. 3

    Decide what happens to the exported users

    Firebase exports users with their password hashes, so the records are portable in principle. They are not portable to SingleSign, where accounts belong to the people who hold them — so the export is a reconciliation aid, not an import.

  4. 4

    Rewrite the security rules against your own backend

    This is the largest piece of work. Rules that trusted Firebase auth state now need your backend to verify a SingleSign token and enforce access itself.

When to stay on Firebase Authentication

  • Firestore security rules are doing real authorisation work for you.
  • You depend on anonymous-to-permanent account upgrades.
  • Phone-number sign-in with managed SMS is a core part of onboarding.

Still deciding rather than migrating? The head-to-head comparison covers the same ground for someone who has not committed yet.

Try the integration before you plan the migration.

Read the quickstart