Flutter Firebase authentication example with Provider.
- Anonymous
- Email & Password
- Email link (passwordless) (see documentation)
- GitHub
- Apple
- Phone
To use this project with Firebase authentication, some configuration steps are required.
- Create a new project with the Firebase console.
- Add iOS and Android apps in the Firebase project settings.
- On Android, use
com.smsofttech.loginexample
as the package name (a SHA-1 certificate fingerprint is also needed for Google sign-in). - then, download and copy
google-services.json
intoandroid/app
. - On iOS, use
com.codingwithflutter.firebaseAuthDemo
as the bundle ID. - then, download and copy
GoogleService-Info.plist
intoiOS/Runner
, and add it to the Runner target in Xcode.
See this document for full instructions:
Additional setup instructions for Google and Facebook sign-in:
- Google Sign-In on iOS: https://firebase.google.com/docs/auth/ios/google-signin
- Google Sign-In on Android: https://firebase.google.com/docs/auth/android/google-signin
- Facebook Login for Android: https://developers.facebook.com/docs/facebook-login/android
- Facebook Login for iOS: https://developers.facebook.com/docs/facebook-login/ios