Authentication
What does it do?
Firebase Authentication provides backend services & easy-to-use SDKs to authenticate users to your app. It supports authentication using passwords, phone numbers, popular federated identity providers like Google, Facebook and Twitter, and more.
Installation
Before installing the Authentication plugin, ensure that you have followed the Getting Started documentation and have initialized FlutterFire.
1. Add dependency
Add the firebase_auth
dependency to your projects pubspec.yaml
file:
2. Download dependency
Download the dependency by running the following command in your project:
3. (Web Only) Add the SDK
If using FlutterFire on the web, add the firebase-auth
JavaScript SDK to your index.html
file:
4. Rebuild your app
Once complete, rebuild your Flutter application:
Next Steps
Once installed, you're ready to start using Firebase Authentication in your Flutter Project. View the Usage documentation to get started.