Firebase Authentication

Firebase Authentication

Most apps need to know the identity of a user. Knowing a user's identity allows an app to securely save user data in the cloud and provide the same personalized experience across all of the user's devices.

Firebase Authentication provides backend services, easy-to-use SDKs, and ready-made UI libraries to authenticate users to your app. It supports authentication using passwords, phone numbers, popular federated identity providers like Google, Facebook and Twitter, and more.

Firebase Authentication integrates tightly with other Firebase services, and it leverages industry standards like OAuth 2.0 and OpenID Connect, so it can be easily integrated with your custom backend.

When you upgrade to Firebase Authentication with Identity Platform, you unlock additional features, such as multi-factor authentication, blocking functions, user activity and audit logging, SAML and generic OpenID Connect support, multi-tenancy, and enterprise-level support.

Learn how to get started

Key capabilities

You can sign in users to your Firebase app either by using FirebaseUI as a complete drop-in auth solution or by using the Firebase Authentication SDK to manually integrate one or several sign-in methods into your app.

FirebaseUI Auth
Drop-in authentication solution
Firebase Authentication SDK
Email and password based authentication
Federated identity provider integration
Sign in with Google iOS Android Web C++ Unity
Sign in with Apple iOS Android Web C++ Unity
Facebook iOS Android Web C++ Unity
Twitter iOS Android Web C++ Unity
GitHub iOS Android Web C++ Unity
Phone number authentication Authenticate users by sending SMS messages to their phones. iOS Android Web C++ Unity
Custom auth system integration Connect your app's existing sign-in system to the Firebase Authentication SDK and gain access to Firebase Realtime Database and other Firebase services. iOS Android Web C++ Unity
Anonymous auth Use features that require authentication without requiring users to sign in first by creating temporary anonymous accounts. If the user later chooses to sign up, you can upgrade the anonymous account to a regular account, so the user can continue where they left off. iOS Android Web C++ Unity

Firebase Authentication with Identity Platform

Firebase Authentication with Identity Platform is an optional upgrade that adds several new features to Firebase Authentication.

This upgrade does not require any migration—your existing client SDK and admin SDK code will continue to work as before, and you'll gain immediate access to features such as enhanced logging and enterprise-grade support and SLAs. With some additional code, you'll be able to add multi-factor auth, blocking functions, and support for SAML and OpenID Connect providers.

Firebase Authentication with Identity Platform has a different pricing scheme compared to the base product. When upgraded, no-cost (Spark) plan projects will be limited to 3,000 daily active users, and pay-as-you-go (Blaze) plan projects will be charged for usage beyond the free tier of 50,000 monthly active users. Be sure you understand the billing implications before you upgrade.

Read more about the new features, pricing, and limits below.

Features

Multi-factor authentication Multi-factor authentication with SMS protects your users' data by adding a second layer of security to your app. Learn how to add MFA to your Apple, Android, and web apps.
Blocking functions Blocking functions let you run custom code that modifies the result of a user registering or signing in to your app. Learn how to extend Firebase Authentication with blocking functions.
SAML and OpenID Connect providers Support sign-in using SAML (web only) and OpenID Connect providers not natively supported by Firebase. Learn how to add SAML sign-in to web apps and OpenID Connect sign-in to Apple, Android, and web apps.
User activity and audit logging Monitor and log administrative access and end-user activity. When you upgrade your project, you automatically enable admin activity audit logs in Cloud Logging. You can also enable user activity logging on the Authentication Settings page of the Firebase console. To learn how to view and analyze your logs, see the Cloud Logging documentation.
Multi-tenancy Using tenants, you can create multiple unique silos of users and configurations within a single project. See Getting started with multi-tenancy in the Cloud Identity Platform documentation.
Enterprise support and SLA Upgraded projects get uptime commitments for Auth services according to the Identity Platform Service Level Agreement (SLA) and are eligible to upgrade to enterprise-grade support.
Automatic clean-up of anonymous users You will get the option to enable anonymous accounts to be automatically deleted if they are over thirty days old. Anonymous accounts also will no longer count towards billing and usage quotas.

Usage limits

Upon upgrade, Firebase Authentication with Identity Platform introduces new limits to your use of Firebase Authentication.

No cost (Spark)

Projects on the no-cost (Spark) plan have a new limit of 3,000 daily active users (DAUs) for most sign-in providers. Daily active usage is calculated based on how many unique users sign in during a 24 hour period.

Providers New limit Old limit
Email, Social, Anonymous, Custom 3,000 DAUs Unlimited
SAML, OpenID Connect 2 DAUs N/A

Pay as you go (Blaze)

Pricing for projects on the Blaze plan is based on monthly active users (MAUs) and includes a no-cost tier of 50,000 users. An active user is anyone who uses their account within the billing period.

Providers No-cost tier Cost ($) per MAU above no-cost tier
Email, Social, Anonymous, Custom 0-49,999 MAUs 0.0025 to 0.0055 per MAU
SAML, OpenID Connect 0-49 MAUs 0.015 per MAU

Upgrade your project

To upgrade your project to Firebase Authentication with Identity Platform, open the Authentication Settings page of the Firebase console.

How does it work?

To sign a user into your app, you first get authentication credentials from the user. These credentials can be the user's email address and password, or an OAuth token from a federated identity provider. Then, you pass these credentials to the Firebase Authentication SDK. Our backend services will then verify those credentials and return a response to the client.

After a successful sign in, you can access the user's basic profile information, and you can control the user's access to data stored in other Firebase products. You can also use the provided authentication token to verify the identity of users in your own backend services.

Implementation paths

Using FirebaseUI Auth
Using the Firebase Authentication SDK

What's next

Learn more about users in a Firebase project, then check out the getting started guides for the platform and sign-in providers you want to support:

iOS+ Android Web Flutter Unity C++ Admin

Not sure where to begin?

Learn how to get started

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies.