Firebase Dart Admin Auth SDK
  • Firebase Dart Admin Auth SDK
    • Introduction
    • Getting Started
      • Installation
      • Initialize Firebase
    • User Management
      • Create User With Email and Password
      • Update Current User
      • Sign In With Credential
      • Sign In With Custom Token
      • Sign in with Email Link
      • Sign In Anonymously
      • Sign Out
      • Sign In With Redirect
      • Sign In With Popup
      • Sign in with Phone Number
      • Sign In With Email and Password
    • User Profile & Data
      • Update Profile
      • Get ID Token
      • Get ID Token Result
      • Reload user
      • Delete User
    • Email & Password Actions
      • Apply Action Code
      • Send Email Verification
      • Send Password Reset Email
      • Update Password
      • Verify Before Update Email
      • Verify Password Reset Code
      • Send Password Reset Email
      • Send Sign-in Link To Email
      • Confirm Password Reset
      • Check Action Code
    • Authentication State
      • Before Auth State Changed
      • On ID Token Changed
      • On Auth State Changed
    • Credential Management
      • Is Sign In With Email Link
      • Unlink Provider
      • Link With Credential
      • Fetch Sign In Methods For Email
      • Link With Popup
      • Link With Phone Number
    • Initialization & Configuration
      • Set Persistence
      • Connect Emulator
      • Use Device Language
      • Set Language Code
      • Initialize Recaptcha Config
      • Get Auth
      • Initialize Auth
    • Multi-Factor Authentication
      • Get Multi-Factor Resolver
    • OAuth and Third-party Auth
      • Generate Custom Token
      • Get Redirect Result
      • Revoke Access Token
    • Utility Functions
      • Get Additional User Info
      • Parse Action Code URL
    • Examples and Tutorials
    • Contributing
    • FAQs
Powered by GitBook
On this page
  • Prerequisites
  • Set up a Firebase project and service account
  • Set up a Flutter project
  1. Firebase Dart Admin Auth SDK

Getting Started

PreviousIntroductionNextInstallation

Last updated 9 months ago

This section will guide you through the prerequisites, installation and essential steps to set up and initialize the Firebase Dart Admin Auth SDK within your project.

If you want to use the Firebase Dart Admin Auth SDK for implementing a Firebase authentication in your Dart or Flutter projects follow the instructions on how to set up the auth SDK.

Prerequisites

  • Ensure you have the and SDK installed in your system.

  • The Dart SDK should be at least — Dart 3.2+

Set up a Firebase project and service account

To use the Firebase Dart Admin Auth SDK, you'll need the following:

  • A Firebase project

  • A Firebase Admin SDK service account to communicate with Firebase. This service account is created automatically when you create a Firebase project or add Firebase to a Google Cloud project.

  • A configuration file with your service account's credentials.

If you don't already have a Firebase project, you need to create one in the .

Set up a Flutter project

To use the Firebase Dart Admin Auth SDK, you'll need to set up a basic Flutter project.

If you don't already have a Flutter project, you need to create one in the console.

Create a Flutter project

  1. Run the following command in the console to create a Flutter project from your terminal.

flutter create my_flutter_app

This will create a project directory with the basic project files and dependencies.

  1. Navigate into the project directory:

cd my_flutter_app

For more details on how to set up your Flutter project from VS Code, Android Studio or IntelliJ, .

The next step is to install the Firebase Dart Admin Auth SDK in your project. Check how to .

Dart
Flutter
Firebase console
read this
install here