Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User authentication with Firebase Auth #5

Open
SarahBornais opened this issue Oct 17, 2020 · 0 comments
Open

User authentication with Firebase Auth #5

SarahBornais opened this issue Oct 17, 2020 · 0 comments
Assignees
Labels

Comments

@SarahBornais
Copy link
Member

SarahBornais commented Oct 17, 2020

Motivation

We will eventually want to use Firebase to store tasks on the cloud. This is especially important if we ever want to make this app cross-platform (users will want to sync tasks between multiple devices).

Task

First, you'll need to set up Firebase with our app. Our team has a Google account that you can use to log into Firebase (direct message me on Slack to get the credentials). Start by adding an Android app on the Firebase console. The Android package name can be found in the Android manifest file for our app (in android/app/src/main/AndroidManifest.xml). You can input something like "Time Tracker" for the App nickname and you can leave the Debug signing certificate SHA-1 blank for now. The Firebase console walks you through the rest of the setup - make sure that you get the app to successfully communicate with the Firebase servers in step 4 (do not skip this!).

To set up Firebase Auth, read through the FlutterFire Auth docs to get started. Then, create a new folder called screens in the lib directory and add a file called register.dart where you'll put the registration screen code. In the app bar in main.dart add an action that takes the user to the registration screen (you can use the account_circle_rounded icon or find another appropriate icon you like here).

When you're done the registration screen, make sure to write some widget tests for it.

Next, add another file called login.dart in the lib/screens folder and add a screen to log a registered user in. You can add a button to the registration screen that takes the user to the login screen (this doesn't need to be fancy - we're going to change it later). Again, when you're done the login screen, write some widget tests for it to make sure that everything works.

@SarahBornais SarahBornais changed the title User registration with Firebase Auth User authentication with Firebase Auth Oct 17, 2020
@SarahBornais SarahBornais added this to Backlog in Time Tracker Oct 17, 2020
@SarahBornais SarahBornais moved this from Backlog to In progress in Time Tracker Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Time Tracker
In progress
Development

No branches or pull requests

4 participants