Getting Started
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
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 Firebase console.
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
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.
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, read this.
The next step is to install the Firebase Dart Admin Auth SDK in your project. Check how to install here.
Last updated