Skip to content
pubscout

firebase_auth

7.1.0, released 4 days ago by firebase.google.com

Flutter plugin for Firebase Authentication enabling passwords, phone numbers, and identity providers.

Flutter FavoriteWASM-ready
$ flutter pub add firebase_auth
Source repository

What it does

Enables authentication in Flutter apps using the Firebase Authentication API. Supports passwords, phone numbers, and identity providers like Google, Facebook, and Twitter.

AI-written summary of version 7.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are using Firebase as your backend infrastructure
  • You need to authenticate users via email, phone, or federated social identity providers

Skip it when

  • You are not using Firebase for your backend services

Strengths

  • Official Flutter plugin backed by Firebase
  • Supports multiple platforms including Android, iOS, web, Windows, and macOS
  • Handles complex authentication flows such as OAuth and phone verification out of the box

Weaknesses

  • Tied directly into the Firebase ecosystem
  • Requires platform-specific configuration and setup steps

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
5

Requires adding Firebase configuration files for each target platform, initializing Firebase Core, and following Firebase setup instructions for Android, iOS, web, Windows, and macOS.

import 'package:firebase_auth/firebase_auth.dart';

Future<void> signIn() async {
  try {
    final credential = await FirebaseAuth.instance.signInWithEmailAndPassword(
      email: 'user@example.com',
      password: 'correct-horse-battery-staple'
    );
  } on FirebaseAuthException catch (e) {
    // handle exception
  }
}

Alternatives

Packages that do the same job and could replace firebase_auth.

  • google_sign_in

    If you specifically need Google Sign-In without the full Firebase Auth suite.

  • local_auth

    If you only need on-device biometric authentication like fingerprint or face ID.

Works with

Packages commonly used together with firebase_auth: ones it builds on, ones built on it, and its own family.