https://github.com/goldinguy/flutterloginexample
🔥 An example one-page Flutter app for firebase login and authentication
https://github.com/goldinguy/flutterloginexample
firebase firebase-auth flutter-examples
Last synced: 2 months ago
JSON representation
🔥 An example one-page Flutter app for firebase login and authentication
- Host: GitHub
- URL: https://github.com/goldinguy/flutterloginexample
- Owner: GoldinGuy
- Created: 2020-10-20T02:55:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-20T03:02:33.000Z (over 5 years ago)
- Last Synced: 2025-03-16T04:22:41.431Z (over 1 year ago)
- Topics: firebase, firebase-auth, flutter-examples
- Language: Dart
- Homepage:
- Size: 74.2 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# firelogin
🔥 An example Flutter app for firebase login and authentication
When attempting to set up authentication with firebase in flutter I found a plethora of decent examples, but many were ugly, outdated, or overcomplicated, so I put together a one-page solution that looks somewhat decent based on the [FlutterFire Auth Example](https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_auth/firebase_auth/example)
## Setup
Create a [Firebase](https://firebase.google.com/) account if you do not have one. Registering your application and download the `google-services.json` file to your project in the `android/app` directory
Make sure the following packages are in your [pubspec.yaml](pubspec.yaml):
- [google_sign_in](https://pub.dev/packages/google_sign_in)
- [firebase_auth](https://pub.dev/packages/firebase_auth)
## Firebase Settings
Enable at least one 'sign-in method' under the authentication tab. firelogin uses email/password, Google, and Github authentication.
To use Google authentication, you need to register a support email and debug SHA certificate fingerprint.
Use the following command in a terminal to generate a debug certificate fingerprint. More details can be found [here](https://developers.google.com/android/guides/client-auth)
```
keytool -list -v -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore
```
Default password is `android`